Chroot should stop option parsing at the first non-option argument.
authorRob Landley <rob@landley.net>
Fri, 15 Aug 2008 19:14:10 +0000 (14:14 -0500)
committerRob Landley <rob@landley.net>
Fri, 15 Aug 2008 19:14:10 +0000 (14:14 -0500)
toys/chroot.c

index a3a5f53..0682379 100644 (file)
@@ -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"