summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-02 02:46:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-02 02:46:40 +0000
commite43baee4b3299188013cbf66e6fa37afb5ce7b93 (patch)
treef4278281427c726496fa1bfc97027459d1213a13 /sys
parent6f017ad05557f9ecda132d9917d215a8e5a45ef1 (diff)
loop till quit
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_userconf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/subr_userconf.c b/sys/kern/subr_userconf.c
index 3ae066161de..3bbdb4affeb 100644
--- a/sys/kern/subr_userconf.c
+++ b/sys/kern/subr_userconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_userconf.c,v 1.6 1996/08/15 13:49:50 niklas Exp $ */
+/* $OpenBSD: subr_userconf.c,v 1.7 1996/09/02 02:46:39 deraadt Exp $ */
/*
* Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
@@ -862,10 +862,11 @@ user_config()
userconf_init();
printf("User Kernel Config\n");
- printf(prompt);
- while (getsn(userconf_cmdbuf, sizeof(userconf_cmdbuf)) != 0) {
- if (userconf_parse(userconf_cmdbuf)) break;
+ while (1) {
printf(prompt);
+ if (getsn(userconf_cmdbuf, sizeof(userconf_cmdbuf)) > 0 &&
+ userconf_parse(userconf_cmdbuf))
+ break;
}
printf("Continuing...\n");
}