summaryrefslogtreecommitdiff
path: root/src/readlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/readlink.c')
-rw-r--r--src/readlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/readlink.c b/src/readlink.c
index 1778f639a..2b61fda92 100644
--- a/src/readlink.c
+++ b/src/readlink.c
@@ -25,6 +25,7 @@
#include "canonicalize.h"
#include "error.h"
#include "areadlink.h"
+#include "quote.h"
/* The official name of this program (e.g., no 'g' prefix). */
#define PROGRAM_NAME "readlink"
@@ -170,7 +171,7 @@ main (int argc, char **argv)
{
status = EXIT_FAILURE;
if (verbose)
- error (0, errno, "%s", fname);
+ error (0, errno, "%s", quote (fname));
}
}