changeset 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 962bbf7341f8
children d1ae502ee190
files toys/chroot.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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"