How to reproduce: [root@adm2 ~] grep defaultpasswd /etc/pw.conf defaultpasswd = "yes" [root@adm2 ~] pw useradd -D -w random [root@adm2 ~] grep defaultpasswd /etc/pw.conf defaultpasswd = "yes" [root@adm2 ~]
review D17299.
A commit references this bug: Author: yuripv Date: Sun Oct 21 14:23:57 UTC 2018 New revision: 339534 URL: https://svnweb.freebsd.org/changeset/base/339534 Log: pw: fix the checks in boolean_str() after r326738. Add related test cases for `pw useradd -D -w`. PR: 231649 Reviewed by: eugen Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D17299 Changes: head/usr.sbin/pw/pw_conf.c head/usr.sbin/pw/tests/pw_useradd_test.sh
^Triage: fixed back in 2018.