diff options
| author | 2002-08-07 23:22:41 +0000 | |
|---|---|---|
| committer | 2002-08-07 23:22:41 +0000 | |
| commit | d49cb7c9e4026b509007fffd83fe82853228d157 (patch) | |
| tree | 89c1fd3950cbc1cf29175966c7b9671bf64526da /usr.sbin/cron/crontab.c | |
| parent | deal better with interrupted system calls (diff) | |
| download | wireguard-openbsd-d49cb7c9e4026b509007fffd83fe82853228d157.tar.xz wireguard-openbsd-d49cb7c9e4026b509007fffd83fe82853228d157.zip | |
paranoia: zero out pw_passwd since we don't need it
Diffstat (limited to 'usr.sbin/cron/crontab.c')
| -rw-r--r-- | usr.sbin/cron/crontab.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index 48bcf3c4afc..a50048b9cec 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.34 2002/07/15 19:13:29 millert Exp $ */ +/* $OpenBSD: crontab.c,v 1.35 2002/08/07 23:22:41 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.34 2002/07/15 19:13:29 millert Exp $"; +static char const rcsid[] = "$OpenBSD: crontab.c,v 1.35 2002/08/07 23:22:41 millert Exp $"; #endif /* crontab - install and manage per-user crontab files @@ -128,6 +128,7 @@ 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); @@ -155,6 +156,7 @@ 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); |
