summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cp-hash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cp-hash.c b/src/cp-hash.c
index c919b0411..6658ca169 100644
--- a/src/cp-hash.c
+++ b/src/cp-hash.c
@@ -27,6 +27,7 @@
#include "system.h"
#include "error.h"
#include "cp-hash.h"
+#include "quote.h"
struct entry
{
@@ -60,7 +61,7 @@ remember_created (const char *path)
if (stat (path, &sb) < 0)
{
- error (0, errno, "%s", path);
+ error (0, errno, "%s", quote (path));
return 1;
}