summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-30 16:29:15 +0000
committerJim Meyering <jim@meyering.net>2000-07-30 16:29:15 +0000
commit7373e3149dc8037c382a85cc48167966d9ed5813 (patch)
tree8c2e7c8cacaf4cf3809b9128b9c232e252ad5518
parent608cabf1d45bb6b71f07c95041a3121aead36a8b (diff)
downloadcoreutils-7373e3149dc8037c382a85cc48167966d9ed5813.tar.xz
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
-rw-r--r--src/mkfifo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mkfifo.c b/src/mkfifo.c
index f574c3310..886ce7bbd 100644
--- a/src/mkfifo.c
+++ b/src/mkfifo.c
@@ -30,6 +30,7 @@
#include "system.h"
#include "error.h"
#include "modechange.h"
+#include "quote.h"
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "mkfifo"
@@ -129,7 +130,7 @@ main (int argc, char **argv)
{
if (mkfifo (argv[optind], newmode))
{
- error (0, errno, _("cannot make fifo `%s'"), argv[optind]);
+ error (0, errno, _("cannot make fifo %s"), quote (argv[optind]));
errors = 1;
}
}