diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-08-10 20:28:52 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-08-10 20:28:52 +0000 |
commit | 42fa929d082ed62eed0a8f3db42516a1124bc09f (patch) | |
tree | 1a4f8e82dda90b465eef2d926d29887b24c463cc /usr.sbin/cron/entry.c | |
parent | a2caa742bd587201251ded946e6e54bea797b7c9 (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/entry.c')
-rw-r--r-- | usr.sbin/cron/entry.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/entry.c b/usr.sbin/cron/entry.c index 25199e0a178..32d96d4577f 100644 --- a/usr.sbin/cron/entry.c +++ b/usr.sbin/cron/entry.c @@ -1,4 +1,4 @@ -/* $OpenBSD: entry.c,v 1.14 2002/08/07 23:22:41 millert Exp $ */ +/* $OpenBSD: entry.c,v 1.15 2002/08/10 20:28:51 millert Exp $ */ /* * Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ */ #if !defined(lint) && !defined(LINT) -static char const rcsid[] = "$OpenBSD: entry.c,v 1.14 2002/08/07 23:22:41 millert Exp $"; +static char const rcsid[] = "$OpenBSD: entry.c,v 1.15 2002/08/10 20:28:51 millert Exp $"; #endif /* vix 26jan87 [RCS'd; rest of log is in RCS file] @@ -252,7 +252,6 @@ load_entry(FILE *file, void (*error_func)(), struct passwd *pw, char **envp) { ecode = e_username; goto eof; } - bzero(pw->pw_passwd, strlen(pw->pw_passwd)); Debug(DPARS, ("load_entry()...uid %ld, gid %ld\n", (long)e->pwd->pw_uid, (long)e->pwd->pw_gid)) } else if (ch == '*') { @@ -264,6 +263,7 @@ load_entry(FILE *file, void (*error_func)(), struct passwd *pw, char **envp) { ecode = e_memory; goto eof; } + bzero(e->pwd->pw_passwd, strlen(e->pwd->pw_passwd)); /* copy and fix up environment. some variables are just defaults and * others are overrides. |