delete some code that doesn't (and shouldn't) run. ok deraadt millert
authortedu <tedu@openbsd.org>
Fri, 23 Jan 2015 18:52:31 +0000 (18:52 +0000)
committertedu <tedu@openbsd.org>
Fri, 23 Jan 2015 18:52:31 +0000 (18:52 +0000)
usr.sbin/cron/user.c

index 96995a8..87fde99 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: user.c,v 1.11 2015/01/23 02:37:25 tedu Exp $  */
+/*     $OpenBSD: user.c,v 1.12 2015/01/23 18:52:31 tedu Exp $  */
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -78,10 +78,6 @@ load_user(int crontab_fd, struct passwd      *pw, const char *name) {
         */
        while ((status = load_env(envstr, file)) >= 0) {
                switch (status) {
-               case -1:
-                       free_user(u);
-                       u = NULL;
-                       goto done;
                case FALSE:
                        e = load_entry(file, NULL, pw, envp);
                        if (e) {