mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
Accept passwords which contain whitespace.
PR: bin/53434
This commit is contained in:
parent
85204142eb
commit
e57f8ca5cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168045
|
@ -664,7 +664,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
|
|||
return EX_IOERR;
|
||||
}
|
||||
line[b] = '\0';
|
||||
if ((p = strpbrk(line, " \t\r\n")) != NULL)
|
||||
if ((p = strpbrk(line, "\r\n")) != NULL)
|
||||
*p = '\0';
|
||||
if (!*line)
|
||||
errx(EX_DATAERR, "empty password read on file descriptor %d", fd);
|
||||
|
|
Loading…
Reference in a new issue