From: Christos Zoulas Date: Mon, 13 Oct 2014 20:21:49 +0000 (+0000) Subject: PR/388: According to POSIX we should not quote the destination of the symlink. X-Git-Tag: FILE5_21~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcf902a3ac6324789d583b70ccfd1610e8ba09e5;p=file PR/388: According to POSIX we should not quote the destination of the symlink. --- diff --git a/src/fsmagic.c b/src/fsmagic.c index 457e3517..fdaacb52 100644 --- a/src/fsmagic.c +++ b/src/fsmagic.c @@ -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; }