diff options
author | 2009-10-29 18:56:47 +0000 | |
---|---|---|
committer | 2009-10-29 18:56:47 +0000 | |
commit | f85440e0546c5751f4601786eef369ec26dd934a (patch) | |
tree | 036aa3fefb9692c87c422d83bc1cf5c25dbc42a0 /usr.sbin/cron/entry.c | |
parent | When probing devices at boot, compare against the full device driver name (diff) | |
download | wireguard-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.c | 5 |
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; |