copy: correct misuse of quote in diagnostic
authorJeff Liu <jeff.liu@oracle.com>
Mon, 2 May 2011 14:26:32 +0000 (16:26 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 3 May 2011 08:15:13 +0000 (10:15 +0200)
* src/copy.c (copy_reg): Multiple uses of quote (s) in an
argument list is erroneous.  Use quote_n, instead.

src/copy.c

index 65566a0..186086e 100644 (file)
@@ -975,7 +975,7 @@ copy_reg (char const *src_name, char const *dst_name,
           if (!clone_ok)
             {
               error (0, errno, _("failed to clone %s from %s"),
-                     quote (dst_name), quote (src_name));
+                     quote_n (0, dst_name), quote_1 (1, src_name));
               return_val = false;
               goto close_src_and_dst_desc;
             }