diff options
author | le <le@FreeBSD.org> | 2007-03-30 12:57:25 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2007-03-30 12:57:25 +0000 |
commit | 6eee3cc935fb8329f5c6aa836f7e94c7f02d2f2c (patch) | |
tree | 1226bfd927f2e55df808df40dfae41765217fc75 | |
parent | f17fbfd9bed9ee074b464a7e75c9a82254cae59a (diff) | |
download | FreeBSD-src-6eee3cc935fb8329f5c6aa836f7e94c7f02d2f2c.zip FreeBSD-src-6eee3cc935fb8329f5c6aa836f7e94c7f02d2f2c.tar.gz |
Accept passwords which contain whitespace.
PR: bin/53434
-rw-r--r-- | usr.sbin/pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 7f13644..0eb1b53 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/pw/pw_user.c @@ -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); |