summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/entry.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2009-10-29 18:56:47 +0000
committermarkus <markus@openbsd.org>2009-10-29 18:56:47 +0000
commitf85440e0546c5751f4601786eef369ec26dd934a (patch)
tree036aa3fefb9692c87c422d83bc1cf5c25dbc42a0 /usr.sbin/cron/entry.c
parentWhen probing devices at boot, compare against the full device driver name (diff)
downloadwireguard-openbsd-f85440e0546c5751f4601786eef369ec26dd934a.tar.xz
wireguard-openbsd-f85440e0546c5751f4601786eef369ec26dd934a.zip
do not discard the first character of the command after the -q option
ok millert@
Diffstat (limited to 'usr.sbin/cron/entry.c')
-rw-r--r--usr.sbin/cron/entry.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/cron/entry.c b/usr.sbin/cron/entry.c
index 2574577b9d8..d2e011b5f24 100644
--- a/usr.sbin/cron/entry.c
+++ b/usr.sbin/cron/entry.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entry.c,v 1.31 2009/10/27 23:59:51 deraadt Exp $ */
+/* $OpenBSD: entry.c,v 1.32 2009/10/29 18:56:47 markus Exp $ */
/*
* Copyright 1988,1990,1993,1994 by Paul Vixie
@@ -341,7 +341,8 @@ load_entry(FILE *file, void (*error_func)(const char *), struct passwd *pw,
/* If the first character of the command is '-' it is a cron option.
*/
- while ((ch = get_char(file)) == '-') {
+ ch = get_char(file);
+ while (ch == '-') {
switch (ch = get_char(file)) {
case 'q':
e->flags |= DONT_LOG;