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/crontab.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/crontab.c')
-rw-r--r-- | usr.sbin/cron/crontab.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index a50048b9cec..6d364f95208 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.35 2002/08/07 23:22:41 millert Exp $ */ +/* $OpenBSD: crontab.c,v 1.36 2002/08/10 20:28:51 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved */ @@ -21,7 +21,7 @@ */ #if !defined(lint) && !defined(LINT) -static char const rcsid[] = "$OpenBSD: crontab.c,v 1.35 2002/08/07 23:22:41 millert Exp $"; +static char const rcsid[] = "$OpenBSD: crontab.c,v 1.36 2002/08/10 20:28:51 millert Exp $"; #endif /* crontab - install and manage per-user crontab files @@ -128,7 +128,6 @@ parse_args(int argc, char *argv[]) { fprintf(stderr, "bailing out.\n"); exit(ERROR_EXIT); } - bzero(pw->pw_passwd, strlen(pw->pw_passwd)); if (strlen(pw->pw_name) >= sizeof User) { fprintf(stderr, "username too long\n"); exit(ERROR_EXIT); @@ -156,7 +155,6 @@ parse_args(int argc, char *argv[]) { ProgramName, optarg); exit(ERROR_EXIT); } - bzero(pw->pw_passwd, strlen(pw->pw_passwd)); if (strlen(optarg) >= sizeof User) usage("username too long"); (void) strcpy(User, optarg); |