summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/atrun.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-08-10 20:28:52 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-08-10 20:28:52 +0000
commit42fa929d082ed62eed0a8f3db42516a1124bc09f (patch)
tree1a4f8e82dda90b465eef2d926d29887b24c463cc /usr.sbin/cron/atrun.c
parenta2caa742bd587201251ded946e6e54bea797b7c9 (diff)
Just zero out pw_passwd in the pw_dup()'d copy. There's no need
to do this elsewhere and my previous commit in this area caused problems on systems with an /etc/crontab file.
Diffstat (limited to 'usr.sbin/cron/atrun.c')
-rw-r--r--usr.sbin/cron/atrun.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/cron/atrun.c b/usr.sbin/cron/atrun.c
index c3043c3c85a..0af77580d1b 100644
--- a/usr.sbin/cron/atrun.c
+++ b/usr.sbin/cron/atrun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atrun.c,v 1.4 2002/08/08 18:17:50 millert Exp $ */
+/* $OpenBSD: atrun.c,v 1.5 2002/08/10 20:28:51 millert Exp $ */
/*
* Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static const char rcsid[] = "$OpenBSD: atrun.c,v 1.4 2002/08/08 18:17:50 millert Exp $";
+static const char rcsid[] = "$OpenBSD: atrun.c,v 1.5 2002/08/10 20:28:51 millert Exp $";
#endif
#include "cron.h"
@@ -280,7 +280,6 @@ run_job(atjob *job, char *atfile)
log_it("CRON", getpid(), "ORPHANED JOB", atfile);
_exit(ERROR_EXIT);
}
- bzero(pw->pw_passwd, strlen(pw->pw_passwd));
/* XXX - is this needed now that we do auth_approval? */
if (pw->pw_expire && time(NULL) >= pw->pw_expire) {
log_it(pw->pw_name, getpid(), "ACCOUNT EXPIRED, JOB ABORTED",