summaryrefslogtreecommitdiff
path: root/usr.sbin/cron
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-12-14 20:20:43 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-12-14 20:20:43 +0000
commit4dde1f082405990ecfb0d8690640897fa7c091ce (patch)
tree2638c09d4c06a70a0ce2f3faad63ab51a2985caa /usr.sbin/cron
parentbe3a7536e8a503bbb43900e490eb2d81a95cda48 (diff)
Check to make sure first char of command is not '*' since that will
alway be a syntax error.
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r--usr.sbin/cron/entry.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/cron/entry.c b/usr.sbin/cron/entry.c
index 7c2b4c12b67..7950cac2f34 100644
--- a/usr.sbin/cron/entry.c
+++ b/usr.sbin/cron/entry.c
@@ -16,7 +16,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char rcsid[] = "$Id: entry.c,v 1.2 1996/11/01 23:27:32 millert Exp $";
+static char rcsid[] = "$Id: entry.c,v 1.3 1996/12/14 20:20:42 millert Exp $";
#endif
/* vix 26jan87 [RCS'd; rest of log is in RCS file]
@@ -240,6 +240,9 @@ load_entry(file, error_func, pw, envp)
goto eof;
}
Debug(DPARS, ("load_entry()...uid %d, gid %d\n",e->uid,e->gid))
+ } else if (ch == '*') {
+ ecode = e_cmd;
+ goto eof;
}
e->uid = pw->pw_uid;