adduser(8): Allow standard IFS characters in passwords
authorAaron LI <aly@aaronly.me>
Fri, 8 May 2020 05:40:32 +0000 (13:40 +0800)
committerAaron LI <aly@aaronly.me>
Mon, 11 May 2020 14:38:59 +0000 (22:38 +0800)
commit72764df04a4016000343258264a9e9fa6d84ef0e
tree934e592c5e8be42e85397f658f7a36de13e2f142
parentd8efa62ec531336f5957ad247897def7f12aad41
adduser(8): 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.

Obtained-from: FreeBSD (revision 359642)
usr.sbin/adduser/adduser.sh