]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Accept passwords which contain whitespace.
authorLukas Ertl <le@FreeBSD.org>
Fri, 30 Mar 2007 12:57:25 +0000 (12:57 +0000)
committerLukas Ertl <le@FreeBSD.org>
Fri, 30 Mar 2007 12:57:25 +0000 (12:57 +0000)
PR:     bin/53434

pw/pw_user.c

index 7f13644de99034c83cbe848747ccd4f1ed75ad4a..0eb1b53716951e5aa9d28e3047b4fec6d3e27504 100644 (file)
@@ -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);