summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
authorLukas Ertl <le@FreeBSD.org>2007-03-30 12:57:25 +0000
committerLukas Ertl <le@FreeBSD.org>2007-03-30 12:57:25 +0000
commit8cd5bb1ca1f135a89d9b504c6ebf7edfc89e550a (patch)
tree78a0c208cdc4b6c7910aa421a91c09cb50300cfd /pw
parentabdbf0ce5b290f2af7177279704ab6c0c83a2a2b (diff)
downloadpw-darwin-8cd5bb1ca1f135a89d9b504c6ebf7edfc89e550a.tar.gz
pw-darwin-8cd5bb1ca1f135a89d9b504c6ebf7edfc89e550a.tar.zst
pw-darwin-8cd5bb1ca1f135a89d9b504c6ebf7edfc89e550a.zip
Accept passwords which contain whitespace.
PR: bin/53434
Diffstat (limited to 'pw')
-rw-r--r--pw/pw_user.c2
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);