summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-09-02 02:46:39 +0000
committerderaadt <deraadt@openbsd.org>1996-09-02 02:46:39 +0000
commitcd63f5dabe48ce606ddebd69ab33ef78e6b78911 (patch)
tree11b2350858bc36c6f5f8b4ba9a847666acf058e1
parentpnp, mcd off (diff)
downloadwireguard-openbsd-cd63f5dabe48ce606ddebd69ab33ef78e6b78911.tar.xz
wireguard-openbsd-cd63f5dabe48ce606ddebd69ab33ef78e6b78911.zip
loop till quit
-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");
}