summaryrefslogtreecommitdiff
path: root/src/mkfifo.c
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2013-12-03 08:02:57 +0100
committerBernhard Voelker <mail@bernhard-voelker.de>2013-12-03 10:03:51 +0100
commitf65a3841606fcbc256c5dfcb7bd3ef90a7adec10 (patch)
tree12474791e834d18659a842e2f9107189ef541c07 /src/mkfifo.c
parent30384428a497bee7e04d493e4801d3b8297fe952 (diff)
downloadcoreutils-f65a3841606fcbc256c5dfcb7bd3ef90a7adec10.tar.xz
maint: avoid '%s' quoting notation in diagnostic messages
Add a new rule to ensure the use of quote() instead of '%s' or `%s' in format strings of diagnostics messages. * cfg.mk (sc_prohibit_quotes_notation): Add rule. * TODO: Remove the entry regarding the '%s' notation. * src/mkfifo.c (main): Remove the offending and in this case even duplicate quoting in the format string of the error diagnostic. * src/mknod.c (main): Likewise. * src/df.c (decode_output_arg): Change two invocations of error() according to the above new rule. * src/numfmt.c: Fix numerous wrong quote notations to fit the above new rule, mostly in internal debugging diagnostic messages.
Diffstat (limited to 'src/mkfifo.c')
-rw-r--r--src/mkfifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mkfifo.c b/src/mkfifo.c
index df97d6baa..2428dd074 100644
--- a/src/mkfifo.c
+++ b/src/mkfifo.c
@@ -170,7 +170,7 @@ main (int argc, char **argv)
}
else if (specified_mode && lchmod (argv[optind], newmode) != 0)
{
- error (0, errno, _("cannot set permissions of `%s'"),
+ error (0, errno, _("cannot set permissions of %s"),
quote (argv[optind]));
exit_status = EXIT_FAILURE;
}