summaryrefslogtreecommitdiff
path: root/usr.sbin/cron
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2009-10-29 18:56:48 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2009-10-29 18:56:48 +0000
commit651480ce422c2c32d45df2de29b6b0e6ed205110 (patch)
treed43232caf5e8d1909229437dce3f670badf8386b /usr.sbin/cron
parentb6910f9f2e6b3f2c84c58f3b6f54ac8c3e14946f (diff)
do not discard the first character of the command after the -q option
ok millert@
Diffstat (limited to 'usr.sbin/cron')
-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;