about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-11-14T12·37+0100
committerEelco Dolstra <edolstra@gmail.com>2016-11-14T12·37+0100
commitb77fb8acb57fee1b6decab818f0893832b4cf440 (patch)
treef7ce4ce09dd6880a6af85d5470571a716dec1d5e /src
parentccb10220228250066e8dc487894fb1e11b338c48 (diff)
Don't rely on %m
Diffstat (limited to 'src')
-rw-r--r--src/libstore/optimise-store.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/optimise-store.cc b/src/libstore/optimise-store.cc
index 2fd9a9bb8787..454c8b49d84b 100644
--- a/src/libstore/optimise-store.cc
+++ b/src/libstore/optimise-store.cc
@@ -5,6 +5,7 @@
 #include "globals.hh"
 
 #include <cstdlib>
+#include <cstring>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
@@ -160,7 +161,7 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path, InodeHa
                full.  When that happens, it's fine to ignore it: we
                just effectively disable deduplication of this
                file.  */
-            printInfo("cannot link ‘%s’ to ‘%s’: %m", linkPath, path);
+            printInfo("cannot link ‘%s’ to ‘%s’: %s", linkPath, path, strerror(errno));
             return;
 
         default: