mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 18:25:19 +00:00
Don't initialize homedir value. When called this early, pw(8) has no
reasonable data for it.
This commit is contained in:
parent
1d90be277e
commit
9a1717b2df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22862
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue