[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] chroot: quote argument in error diagnostic
From: |
Pádraig Brady |
Subject: |
[PATCH] chroot: quote argument in error diagnostic |
Date: |
Fri, 26 Jun 2015 19:35:31 +0100 |
* 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 f44cec5..42b4501 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.4.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] chroot: quote argument in error diagnostic,
Pádraig Brady <=