summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-24 02:37:41 +0000
committerRoland McGrath <roland@gnu.org>2001-08-24 02:37:41 +0000
commit13d73dce141a6fb979e046799c00dba607f0d7ef (patch)
treec37af018ea483bb7e5ba76012c7b6d9eeaf9733c /init
parentb761c89edf6fe44a159c51d9ed25a1e40aa6b4f7 (diff)
2001-08-23 Roland McGrath <roland@frob.com>
* init.c (main): Pass ARGP_NO_ERRS|ARGP_IN_ORDER to argp_parse.
Diffstat (limited to 'init')
-rw-r--r--init/init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index bf6ef8b5..7bb66460 100644
--- a/init/init.c
+++ b/init/init.c
@@ -521,8 +521,10 @@ main (int argc, char **argv, char **envp)
mach_port_t consdev;
struct argp argp = { options, parse_opt, 0, doc };
- /* Parse the arguments */
- argp_parse (&argp, argc, argv, 0, 0, 0);
+ /* Parse the arguments. We don't want the vector reordered,
+ we should pass on to our child the exact arguments we got
+ and just ignore any arguments that aren't flags for us. */
+ argp_parse (&argp, argc, argv, ARGP_NO_ERRS|ARGP_IN_ORDER, 0, 0);
if (getpid () > 0)
error (2, 0, "can only be run by bootstrap filesystem");