From 42fa929d082ed62eed0a8f3db42516a1124bc09f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 10 Aug 2002 20:28:52 +0000 Subject: 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. --- usr.sbin/cron/atrun.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin/cron/atrun.c') 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 @@ -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", -- cgit v1.2.3