diff options
author | asomers <asomers@FreeBSD.org> | 2016-09-12 17:35:45 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2016-09-12 17:35:45 +0000 |
commit | 9f16b96c4bb2351b941afdc62da0d09617ff819b (patch) | |
tree | 1dc8f73e718333e9898a666df5b1a795540f17c4 /source/components/disassembler/dmnames.c | |
parent | 5986af9d01080d549cde638c5af2bef5fd977207 (diff) | |
download | FreeBSD-src-9f16b96c4bb2351b941afdc62da0d09617ff819b.zip FreeBSD-src-9f16b96c4bb2351b941afdc62da0d09617ff819b.tar.gz |
MFC r302778
pw should sanitize the argument of -w.
Otherwise, it will silently disable the login for the selected account if
the argument is unrecognizable.
usr.sbin/pw/pw.h
usr.sbin/pw/pw_conf.c
usr.sbin/pw/pw_user.c
Use separate rules to validate boolean parameters and passwd
parameters. Error out if a password parameter cannot be parsed.
usr.sbin/pw/tests/Makefile
usr.sbin/pw/tests/crypt.c
usr.sbin/pw/tests/pw_useradd.sh
usr.sbin/pw/tests/pw_usermod.sh
Add tests for the validation. Also, enhance existing
password-related tests to actually validate that the correct hash is
written to master.passwd.
Diffstat (limited to 'source/components/disassembler/dmnames.c')
0 files changed, 0 insertions, 0 deletions