aboutsummaryrefslogtreecommitdiff
path: root/toys/chroot.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-08-15 14:14:10 -0500
committerRob Landley <rob@landley.net>2008-08-15 14:14:10 -0500
commit5a9c37f5e9dde147270974d796b5c6c742fb2804 (patch)
tree65ac2b46461454bd92ea31f50760eeff3c52589d /toys/chroot.c
parente824ed1b5a1d7a6c839348cf4636ceb9972e7a11 (diff)
downloadtoybox-5a9c37f5e9dde147270974d796b5c6c742fb2804.tar.gz
Chroot should stop option parsing at the first non-option argument.
Diffstat (limited to 'toys/chroot.c')
-rw-r--r--toys/chroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/chroot.c b/toys/chroot.c
index a3a5f53c..06823796 100644
--- a/toys/chroot.c
+++ b/toys/chroot.c
@@ -6,7 +6,7 @@
*
* Not in SUSv3.
-USE_CHROOT(NEWTOY(chroot, "<1", TOYFLAG_USR|TOYFLAG_SBIN))
+USE_CHROOT(NEWTOY(chroot, "^<1", TOYFLAG_USR|TOYFLAG_SBIN))
config CHROOT
bool "chroot"