summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>2001-01-15 23:53:35 +0000
committerMats O Jansson <maja@cvs.openbsd.org>2001-01-15 23:53:35 +0000
commit0bd19b11f411dc6ae0639592cfa361ab28835b01 (patch)
treef317784eec1d9b45276b800d6455cf24582348ea
parent9b9c0d634967c42e5b81e9c9b46ba809557df246 (diff)
Fix bug that sometime ignored first command in -e mode. -moj
-rw-r--r--usr.sbin/config/ukcutil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/config/ukcutil.c b/usr.sbin/config/ukcutil.c
index 622e471e2a7..354df3800f4 100644
--- a/usr.sbin/config/ukcutil.c
+++ b/usr.sbin/config/ukcutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukcutil.c,v 1.3 2000/08/08 21:42:40 deraadt Exp $ */
+/* $OpenBSD: ukcutil.c,v 1.4 2001/01/15 23:53:34 maja Exp $ */
/*
* Copyright (c) 1999 Mats O Jansson. All rights reserved.
@@ -30,7 +30,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.3 2000/08/08 21:42:40 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.4 2001/01/15 23:53:34 maja Exp $";
#endif
#include <sys/types.h>
@@ -91,10 +91,10 @@ more()
fflush(stdout);
ask_cmd(&cmd);
cnt = 0;
+ if (cmd.cmd[0] == 'q' || cmd.cmd[0] == 'Q')
+ quit = 1;
}
cnt++;
- if (cmd.cmd[0] == 'q' || cmd.cmd[0] == 'Q')
- quit = 1;
}
return (quit);