diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-22 18:43:21 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-22 18:43:21 +0000 |
commit | c6a977a04d87dbc12f2157993a53e668460a7d35 (patch) | |
tree | 1c7a8fc705a5cf1373584db52364e3379b101faa /usr.sbin/sysinstall/main.c | |
parent | a13e99514d8af1eb257a5d6f706fbeeb9f930a84 (diff) | |
download | src-c6a977a04d87dbc12f2157993a53e668460a7d35.tar.gz src-c6a977a04d87dbc12f2157993a53e668460a7d35.zip |
Fix some bogus argument handling - whups! James was right..
Notes
Notes:
svn path=/head/; revision=17246
Diffstat (limited to 'usr.sbin/sysinstall/main.c')
-rw-r--r-- | usr.sbin/sysinstall/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/main.c b/usr.sbin/sysinstall/main.c index 647efd3a6666..13ffea69630b 100644 --- a/usr.sbin/sysinstall/main.c +++ b/usr.sbin/sysinstall/main.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: main.c,v 1.23 1996/07/02 01:03:44 jkh Exp $ + * $Id: main.c,v 1.24 1996/07/12 11:14:15 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -75,7 +75,6 @@ main(int argc, char **argv) variable_set2(VAR_DEBUG, "YES"); Fake = TRUE; msgConfirm("I'll be just faking it from here on out, OK?"); - --argc, ++argv; } /* Try to preserve our scroll-back buffer */ @@ -99,6 +98,8 @@ main(int argc, char **argv) if (!strstr(argv[0], "sysinstall")) start_arg = 0; + else if (Fake) + start_arg = 2; else start_arg = 1; for (i = start_arg; i < argc; i++) { |