]> git.cameronkatri.com Git - pw-darwin.git/commit
adduser: allow standard IFS characters in passwords
authorKyle Evans <kevans@FreeBSD.org>
Sun, 5 Apr 2020 19:25:46 +0000 (19:25 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 5 Apr 2020 19:25:46 +0000 (19:25 +0000)
commitd9dc1bbb352b30f9322b33dcf3327a63a31d138c
treecd188431e3541578a7b1dd8bac362a9aaf7e919f
parent3920ec2f846f7ebb004929a0bccbef481f867f11
adduser: allow standard IFS characters in passwords

Notably, the default IFS contains space/tab, thus any leading/trailing
whitespace characters tend to be removed.

Set IFS= for just the read lines to mitigate this, allowing the user to be
less surprised when their leading/trailing spaces weren't actually captured
in the password as they are with other means of setting a user's password.

PR: 245342
Submitted by: dereks_lifeofadishwasher.com
Reviewed by: jilles
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D24292
adduser/adduser.sh