diff toys/chroot.c @ 312:064fc1b8b7b1

Chroot should stop option parsing at the first non-option argument.
author Rob Landley <rob@landley.net>
date Fri, 15 Aug 2008 14:14:10 -0500
parents 163498bf547b
children
line wrap: on
line diff
--- a/toys/chroot.c	Fri Jul 18 08:43:18 2008 -0500
+++ b/toys/chroot.c	Fri Aug 15 14:14:10 2008 -0500
@@ -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"