From 8cd5bb1ca1f135a89d9b504c6ebf7edfc89e550a Mon Sep 17 00:00:00 2001 From: Lukas Ertl Date: Fri, 30 Mar 2007 12:57:25 +0000 Subject: Accept passwords which contain whitespace. PR: bin/53434 --- pw/pw_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pw/pw_user.c') 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); -- cgit v1.2.3