Accept passwords which contain whitespace.

PR:     bin/53434
This commit is contained in:
Lukas Ertl 2007-03-30 12:57:25 +00:00
parent 85204142eb
commit e57f8ca5cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168045

View File

@ -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);