summaryrefslogtreecommitdiffstats
path: root/pw/pw_user.c
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
commita8aa1aba29d94b2ea6e4418cd54036d97c618859 (patch)
treef8f6f2b6b7387930352d25ab2f9ef3dfa07eb75a /pw/pw_user.c
parent678412e2ca614bde0a78f68030d634364c0b5a9f (diff)
downloadpw-darwin-a8aa1aba29d94b2ea6e4418cd54036d97c618859.tar.gz
pw-darwin-a8aa1aba29d94b2ea6e4418cd54036d97c618859.tar.zst
pw-darwin-a8aa1aba29d94b2ea6e4418cd54036d97c618859.zip
Accept passwords which contain whitespace.
PR: bin/53434
Diffstat (limited to 'pw/pw_user.c')
-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);