From 215f0ed954d919fb4ed9a8b1ddc70997ec12ed57 Mon Sep 17 00:00:00 2001 From: millert Date: Sat, 14 Dec 1996 20:20:42 +0000 Subject: [PATCH] Check to make sure first char of command is not '*' since that will alway be a syntax error. --- usr.sbin/cron/entry.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.20.1