diff options
author | jkh <jkh@FreeBSD.org> | 1997-02-18 01:50:51 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-02-18 01:50:51 +0000 |
commit | 6e28b5a6df0e1ab4114b35fb5a1f3b0d4e4db758 (patch) | |
tree | b37a118beaa1f5ba7cf9c0ded5320e3fb18b430d | |
parent | f8ba92686c79904b621ef93c6d9c5c95a864ef87 (diff) | |
download | FreeBSD-src-6e28b5a6df0e1ab4114b35fb5a1f3b0d4e4db758.zip FreeBSD-src-6e28b5a6df0e1ab4114b35fb5a1f3b0d4e4db758.tar.gz |
Don't initialize homedir value. When called this early, pw(8) has no
reasonable data for it.
-rw-r--r-- | release/sysinstall/user.c | 1 | ||||
-rw-r--r-- | usr.sbin/sysinstall/user.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/release/sysinstall/user.c b/release/sysinstall/user.c index f3006e3..7d8943c 100644 --- a/release/sysinstall/user.c +++ b/release/sysinstall/user.c @@ -533,7 +533,6 @@ completeUser(void) if ((cp2 = strchr(cp, ':')) == NULL) return; *cp2++ = '\0'; - strncpy(homedir, cp, sizeof homedir); if (*cp2) strncpy(shell, cp2, sizeof shell); } diff --git a/usr.sbin/sysinstall/user.c b/usr.sbin/sysinstall/user.c index f3006e3..7d8943c 100644 --- a/usr.sbin/sysinstall/user.c +++ b/usr.sbin/sysinstall/user.c @@ -533,7 +533,6 @@ completeUser(void) if ((cp2 = strchr(cp, ':')) == NULL) return; *cp2++ = '\0'; - strncpy(homedir, cp, sizeof homedir); if (*cp2) strncpy(shell, cp2, sizeof shell); } |