[Bug 223431] "pw useradd -D -e" writes bogus expire_days value into pw.conf

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 5 13:28:11 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431

Yuri Pankov <yuripv at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #187753|0                           |1
        is obsolete|                            |

--- Comment #4 from Yuri Pankov <yuripv at gmx.com> ---
Created attachment 187757
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187757&action=edit
fix -e and -p with -D, properly use the config values

- move the checks to mix_config() as we need to know if we are writing the
config (-D)
- if writing config, use the values specified on the command line (checking
them for validity)
- if we are adding the user, first try the value on the command line, then the
value in the config, and finally just disable the expiration

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list