chroot: quote argument in error diagnostic

* src/chroot.c (main): Quote the passed argument,
to avoid confusing error messages.
This commit is contained in:
Pádraig Brady committed 2015-06-26 19:35:46 +01:00
1 parent f3a0e9ebb2
commit e0c5ca485c
1 file changed
+1 -1
+1 -1
View File
@@ -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"));