coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] mkfifo,mknod: avoid duplicate quoting in error diagnostic


From: Bernhard Voelker
Subject: [PATCH] mkfifo,mknod: avoid duplicate quoting in error diagnostic
Date: Mon, 02 Dec 2013 11:53:56 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

Trivial one ...

Have a nice day,
Berny

>From 9f8cd1d88bb5179c893f6b22af295181d9dce66f Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <address@hidden>
Date: Mon, 2 Dec 2013 11:52:04 +0100
Subject: [PATCH] mkfifo,mknod: avoid duplicate quoting in error diagnostic

* src/mkfifo.c (main): Remove quoting of %s in the format string of
an error diagnostic; the file name is already being quote()ed.
* src/mknod.c (main): Likewise.

Introduced in commit 'v8.21-51-ge7198a6'.
---
 src/mkfifo.c | 2 +-
 src/mknod.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mkfifo.c b/src/mkfifo.c
index df97d6b..2428dd0 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;
         }
diff --git a/src/mknod.c b/src/mknod.c
index 908d840..7856e51 100644
--- a/src/mknod.c
+++ b/src/mknod.c
@@ -265,7 +265,7 @@ main (int argc, char **argv)
     }

   if (specified_mode && lchmod (argv[optind], newmode) != 0)
-    error (EXIT_FAILURE, errno, _("cannot set permissions of `%s'"),
+    error (EXIT_FAILURE, errno, _("cannot set permissions of %s"),
            quote (argv[optind]));

   exit (EXIT_SUCCESS);
-- 
1.8.4.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]