]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): `quote' the offending argument.
authorJim Meyering <jim@meyering.net>
Sat, 17 Feb 2001 14:23:43 +0000 (14:23 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 17 Feb 2001 14:23:43 +0000 (14:23 +0000)
src/chown.c

index 75f681dacb0ae10902f67ec9b0da67df5ddb8950..3b9a656de5dfa4e6ab04981a2bb2198cc54cd82a 100644 (file)
@@ -225,7 +225,7 @@ main (int argc, char **argv)
       const char *e = parse_user_spec (argv[optind], &uid, &gid,
                                       &chopt.user_name, &chopt.group_name);
       if (e)
-        error (1, 0, "%s: %s", argv[optind], e);
+        error (1, 0, "%s: %s", quote (argv[optind]), e);
 
       /* FIXME: set it to the empty string?  */
       if (chopt.user_name == NULL)