diff options
| author | Lukas Ertl <le@FreeBSD.org> | 2007-03-30 12:57:25 +0000 |
|---|---|---|
| committer | Lukas Ertl <le@FreeBSD.org> | 2007-03-30 12:57:25 +0000 |
| commit | 8cd5bb1ca1f135a89d9b504c6ebf7edfc89e550a (patch) | |
| tree | 78a0c208cdc4b6c7910aa421a91c09cb50300cfd /pw/pw_user.c | |
| parent | abdbf0ce5b290f2af7177279704ab6c0c83a2a2b (diff) | |
| download | pw-darwin-8cd5bb1ca1f135a89d9b504c6ebf7edfc89e550a.tar.gz pw-darwin-8cd5bb1ca1f135a89d9b504c6ebf7edfc89e550a.zip | |
Accept passwords which contain whitespace.
PR: bin/53434
Diffstat (limited to 'pw/pw_user.c')
| -rw-r--r-- | pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c index 7f13644..0eb1b53 100644 --- a/pw/pw_user.c +++ b/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); |
