artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2133cbb
)
Check to make sure first char of command is not '*' since that will
author
millert
<millert@openbsd.org>
Sat, 14 Dec 1996 20:20:42 +0000
(20:20 +0000)
committer
millert
<millert@openbsd.org>
Sat, 14 Dec 1996 20:20:42 +0000
(20:20 +0000)
alway be a syntax error.
usr.sbin/cron/entry.c
patch
|
blob
|
history
diff --git
a/usr.sbin/cron/entry.c
b/usr.sbin/cron/entry.c
index
7c2b4c1
..
7950cac
100644
(file)
--- 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:3
2 millert Exp $";
+static char rcsid[] = "$Id: entry.c,v 1.
3 1996/12/14 20:20:4
2 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;