]> granicus.if.org Git - file/commitdiff
PR/388: According to POSIX we should not quote the destination of the symlink.
authorChristos Zoulas <christos@zoulas.com>
Mon, 13 Oct 2014 20:21:49 +0000 (20:21 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 13 Oct 2014 20:21:49 +0000 (20:21 +0000)
src/fsmagic.c

index 457e35174c8e727ec8cdbf1fb10b91e4373efa7a..fdaacb52b769a1723b9a9a3bbe47e72c5f5d1191 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: fsmagic.c,v 1.72 2014/04/17 12:47:11 christos Exp $")
+FILE_RCSID("@(#)$File: fsmagic.c,v 1.73 2014/05/14 23:15:42 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -75,10 +75,10 @@ bad_link(struct magic_set *ms, int err, char *buf)
        else if (!mime) {
                if (ms->flags & MAGIC_ERROR) {
                        file_error(ms, err,
-                                  "broken symbolic link to `%s'", buf);
+                                  "broken symbolic link to %s", buf);
                        return -1;
                } 
-               if (file_printf(ms, "broken symbolic link to `%s'", buf) == -1)
+               if (file_printf(ms, "broken symbolic link to %s", buf) == -1)
                        return -1;
        }
        return 1;
@@ -352,7 +352,7 @@ file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb)
                        if (mime) {
                                if (handle_mime(ms, mime, "symlink") == -1)
                                        return -1;
-                       } else if (file_printf(ms, "%ssymbolic link to `%s'",
+                       } else if (file_printf(ms, "%ssymbolic link to %s",
                            COMMA, buf) == -1)
                                return -1;
                }