From e0c5ca485c9a5f016650f2c78e4d2edb6e44b2bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Fri, 26 Jun 2015 19:31:00 +0100 Subject: [PATCH] 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(-) 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")); -- 2.47.2