summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-02-13 21:32:03 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-02-13 21:32:03 +0000
commit5f550ff68d37e6e03b6a2036c0aca610ca76fa88 (patch)
treee8661068695f933dc5c61be1af0da503a34ee38e /sys
parent6171bf298fd6810b8abe328445ff76c6fb74efbb (diff)
accept 'setargs -c' or '(hd0)bsd -c' doesn not currently allow for '-c wd0'
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/cats/cats/cats_machdep.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/cats/cats/cats_machdep.c b/sys/arch/cats/cats/cats_machdep.c
index 24eb7577391..bb32b0b1480 100644
--- a/sys/arch/cats/cats/cats_machdep.c
+++ b/sys/arch/cats/cats/cats_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cats_machdep.c,v 1.5 2004/02/12 04:33:54 drahn Exp $ */
+/* $OpenBSD: cats_machdep.c,v 1.6 2004/02/13 21:32:02 drahn Exp $ */
/* $NetBSD: cats_machdep.c,v 1.50 2003/10/04 14:28:28 chris Exp $ */
/*
@@ -930,13 +930,15 @@ again:
if (*args != 0)
*args++ = 0;
- if (0 == strcmp(boot_file, "setargs")) {
- boot_file = args;
- goto again;
- }
-
while (*args == ' ')
++args;
+ if (*args != '-') {
+ if (0 == strcmp(boot_file, "setargs")) {
+ boot_file = args;
+ goto again;
+ }
+ }
+
boot_args = args;
if (*args == '-') {