asomers 9f16b96c4b 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.
2016-09-12 17:35:45 +00:00
..
2013-03-17 06:54:04 +00:00
2016-06-01 17:16:35 +00:00
2015-10-13 18:56:50 +00:00
2016-09-08 15:27:42 +00:00
2016-01-17 06:02:59 +00:00
2013-07-10 07:40:30 +00:00
2015-05-21 13:42:37 +00:00
2016-08-21 17:57:32 +00:00
2015-09-04 15:45:42 +00:00
2016-09-02 17:24:16 +00:00
2016-01-19 19:04:56 +00:00
2015-11-19 00:14:23 +00:00
2016-01-27 06:38:03 +00:00
2016-03-17 21:00:43 +00:00
2016-06-08 18:08:06 +00:00
2014-03-27 20:19:11 +00:00
2016-07-06 17:45:38 +00:00
2015-06-01 09:04:57 +00:00
2012-10-07 19:53:04 +00:00
2016-05-23 04:47:24 +00:00
2016-06-23 09:06:11 +00:00
2016-05-23 04:50:01 +00:00
2016-04-21 14:25:45 +00:00
2014-05-09 15:55:45 +00:00
2015-07-01 15:03:49 +00:00
2016-02-11 17:55:17 +00:00
2013-05-10 16:41:26 +00:00
2016-05-20 06:27:58 +00:00
2014-03-26 07:31:57 +00:00
2015-10-02 16:21:14 +00:00
2016-07-12 21:41:27 +00:00
2012-03-26 21:22:53 +00:00
2014-11-03 10:26:29 +00:00
2012-03-26 15:18:14 +00:00
2015-10-13 18:56:50 +00:00
2016-07-11 04:11:33 +00:00
2016-01-12 16:38:09 +00:00
2016-01-07 00:40:51 +00:00
2014-12-05 07:51:50 +00:00
2016-01-08 23:58:32 +00:00
2015-09-25 01:17:24 +00:00
2015-01-09 03:26:18 +00:00
2016-04-23 10:06:57 +00:00
2015-10-29 16:34:55 +00:00
2016-07-17 14:15:08 +00:00
2016-04-27 16:23:16 +00:00
2016-01-07 00:40:51 +00:00
2016-05-20 06:56:43 +00:00
2015-12-04 19:16:56 +00:00
2016-01-06 17:48:35 +00:00
2016-06-10 14:13:24 +00:00
2015-10-02 16:22:21 +00:00
2016-01-07 00:40:51 +00:00
2016-01-16 01:40:46 +00:00
2016-04-05 20:34:20 +00:00
2016-07-06 17:45:38 +00:00
2013-12-13 00:56:05 +00:00
2016-01-07 00:40:51 +00:00
2012-05-17 11:50:12 +00:00
2015-12-04 18:22:31 +00:00
2016-01-17 06:02:59 +00:00
2016-06-15 14:11:49 +00:00
2015-12-14 22:54:02 +00:00
2014-10-17 19:55:12 +00:00
2016-08-27 02:27:29 +00:00
2016-03-28 09:36:52 +00:00
2016-01-18 19:52:20 +00:00
2016-07-11 23:15:54 +00:00
2015-09-15 05:56:16 +00:00
2014-05-30 15:00:50 +00:00
2016-01-07 00:40:51 +00:00
2016-09-09 06:59:49 +00:00
2016-05-23 05:41:23 +00:00
2016-09-12 17:35:45 +00:00
2016-03-06 08:40:21 +00:00
2016-05-23 05:43:59 +00:00
2016-06-10 14:40:41 +00:00
2016-07-08 20:50:44 +00:00
2016-05-23 05:38:40 +00:00
2016-06-08 13:49:59 +00:00
2014-12-31 23:25:37 +00:00
2016-07-12 21:49:08 +00:00
2016-06-10 18:21:05 +00:00
2016-05-20 07:08:19 +00:00
2016-07-12 22:53:11 +00:00
2015-12-04 19:16:56 +00:00
2016-01-15 20:59:57 +00:00
2016-03-06 08:40:21 +00:00
2013-09-07 20:25:22 +00:00
2016-04-08 21:42:35 +00:00
2015-12-04 19:16:56 +00:00
2015-12-04 19:16:56 +00:00
2016-05-20 06:33:02 +00:00
2016-06-01 17:57:56 +00:00
2016-01-07 00:40:51 +00:00
2015-12-29 01:08:58 +00:00
2014-11-19 08:56:38 +00:00
2014-06-04 10:33:30 +00:00
2013-05-12 22:22:12 +00:00
2015-10-29 16:45:06 +00:00
2014-04-17 10:37:21 +00:00
2012-03-26 21:22:53 +00:00
2015-10-13 18:56:50 +00:00
2016-05-20 06:19:00 +00:00
2016-06-01 17:20:36 +00:00
2015-12-04 18:21:05 +00:00
2016-04-05 20:34:20 +00:00
2016-01-19 23:36:49 +00:00
2016-01-19 23:36:49 +00:00
2016-01-19 23:36:49 +00:00
2016-01-19 23:36:49 +00:00