From: Pádraig Brady Date: Fri, 26 Jun 2015 18:31:00 +0000 (+0100) Subject: chroot: quote argument in error diagnostic X-Git-Tag: v8.24~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0c5ca485c9a5f016650f2c78e4d2edb6e44b2bb;p=thirdparty%2Fcoreutils.git chroot: quote argument in error diagnostic * src/chroot.c (main): Quote the passed argument, to avoid confusing error messages. --- diff --git a/src/chroot.c b/src/chroot.c index f44cec51d4..42b4501780 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -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"));