Check to make sure first char of command is not '*' since that will
authormillert <millert@openbsd.org>
Sat, 14 Dec 1996 20:20:42 +0000 (20:20 +0000)
committermillert <millert@openbsd.org>
Sat, 14 Dec 1996 20:20:42 +0000 (20:20 +0000)
alway be a syntax error.

usr.sbin/cron/entry.c

index 7c2b4c1..7950cac 100644 (file)
@@ -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;