From e0c5ca485c9a5f016650f2c78e4d2edb6e44b2bb Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Fri, 26 Jun 2015 19:31:00 +0100 Subject: chroot: quote argument in error diagnostic * src/chroot.c (main): Quote the passed argument, to avoid confusing error messages. --- src/chroot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/chroot.c') diff --git a/src/chroot.c b/src/chroot.c index f44cec51d..42b450178 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")); -- cgit v1.2.3-54-g00ecf