From e57f8ca5cdfbad81703e6ee76912773b26a97aff Mon Sep 17 00:00:00 2001 From: Lukas Ertl Date: Fri, 30 Mar 2007 12:57:25 +0000 Subject: [PATCH] Accept passwords which contain whitespace. PR: bin/53434 --- usr.sbin/pw/pw_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 7f13644de990..0eb1b5371695 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);