diff options
author | 2001-12-10 23:15:34 +0000 | |
---|---|---|
committer | 2001-12-10 23:15:34 +0000 | |
commit | c7999c1cb1ed067c0e0f694102d932184601978c (patch) | |
tree | 878a34f18306722a91c80722b1909af615a76c99 | |
parent | Grrr, drug induced haze. Thanks Theo. (diff) | |
download | wireguard-openbsd-c7999c1cb1ed067c0e0f694102d932184601978c.tar.xz wireguard-openbsd-c7999c1cb1ed067c0e0f694102d932184601978c.zip |
handle "q" input better; bug reported in 2244
-rw-r--r-- | usr.sbin/config/ukcutil.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/config/ukcutil.c b/usr.sbin/config/ukcutil.c index 7a596d92c36..acb76d4222b 100644 --- a/usr.sbin/config/ukcutil.c +++ b/usr.sbin/config/ukcutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukcutil.c,v 1.7 2001/12/05 10:11:23 deraadt Exp $ */ +/* $OpenBSD: ukcutil.c,v 1.8 2001/12/10 23:15:34 deraadt Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -30,7 +30,7 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.7 2001/12/05 10:11:23 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.8 2001/12/10 23:15:34 deraadt Exp $"; #endif #include <sys/types.h> @@ -1005,6 +1005,8 @@ add_read(prompt, field, dev, len, val) struct cfdata *cd; struct cfdriver *cdrv; + *val = -1; + while (!ok) { printf("%s ? ", prompt); fflush(stdout); |