mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
chroot: quote argument in error diagnostic
* src/chroot.c (main): Quote the passed argument, to avoid confusing error messages.
This commit is contained in:
1 parent
f3a0e9ebb2
commit
e0c5ca485c
1 file changed
+1
-1
+1
-1
@@ -327,7 +327,7 @@ main (int argc, char **argv)
|
||||
|
||||
if (chroot (newroot) != 0)
|
||||
error (EXIT_CANCELED, errno, _("cannot change root directory to %s"),
|
||||
newroot);
|
||||
quote (newroot));
|
||||
|
||||
if (! skip_chdir && chdir ("/"))
|
||||
error (EXIT_CANCELED, errno, _("cannot chdir to root directory"));
|
||||
|
||||
Reference in new issue
Block a user