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

2017-12-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Eugene Grosbein changed: What|Removed |Added Assignee|freebsd-bugs@FreeBSD.org|eu...@freebsd.org F

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

2017-12-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 --- Comment #15 from commit-h...@freebsd.org --- A commit references this bug: Author: eugen Date: Sat Dec 9 23:34:01 UTC 2017 New revision: 326738 URL: https://svnweb.freebsd.org/changeset/base/326738 Log: pw(8): correct expiration per

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

2017-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Mark Linimon changed: What|Removed |Added Keywords||patch CC|

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 --- Comment #14 from v...@mpeks.tomsk.su --- (In reply to Eugene Grosbein from comment #13) Looks like the patch works: root@gw:~ # pw useradd -D -e 0 root@gw:~ # grep expire_days /etc/pw.conf expire_days = 0 root@gw:~ # pw useradd -D -e

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Eugene Grosbein changed: What|Removed |Added Status|Open|In Progress --- Comment #13 from

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Eugene Grosbein changed: What|Removed |Added Attachment #187759|0 |1 is obsolete|

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 --- Comment #11 from v...@mpeks.tomsk.su --- (In reply to Eugene Grosbein from comment #7) Yes, but expire_days form pw.conf should somehow translate to now()+expire_days when actually placing the value into the passwd(5) expire field, whic

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 --- Comment #10 from Alan Somers --- The only relevant guides are the tests(7) and atf(7) man pages, and everything they link to. For this PR it should be sufficient to copy one of the existing tests in that file as a template. Make sure

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Eugene Grosbein changed: What|Removed |Added Status|New |Open --- Comment #9 from Eugene

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Alan Somers changed: What|Removed |Added CC||asom...@freebsd.org --- Comment #8 f

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 --- Comment #7 from Eugene Grosbein --- (In reply to vas from comment #3) passwd(5) manual page specifies: The expire field is the number of seconds from the epoch, UTC, until the account expires. -- You are receiving this mai

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Eugene Grosbein changed: What|Removed |Added CC||eu...@freebsd.org --- Comment #6

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Yuri Pankov changed: What|Removed |Added Attachment #187757|0 |1 is obsolete|

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Yuri Pankov changed: What|Removed |Added Attachment #187753|0 |1 is obsolete|

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 --- Comment #3 from v...@mpeks.tomsk.su --- Even if I treat expire_days as seconds, new accounts are still created with the expiration date in the past (seconds since epoch, not since the moment of account creation). -- You are receiving

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 --- Comment #2 from v...@mpeks.tomsk.su --- Hmm, even with a numeric argument it sets the expiry date incorrectly in newly created accounts, see the "Expire" line below: root@gw:~ # pw useradd -D -e 365 root@gw:~ # grep expire_days /etc/pw

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

2017-11-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Yuri Pankov changed: What|Removed |Added CC||yur...@gmx.com --- Comment #1 from Y

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

2017-11-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 v...@mpeks.tomsk.su changed: What|Removed |Added Severity|Affects Only Me |Affects Some People -- You a

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

2017-11-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 Bug ID: 223431 Summary: "pw useradd -D -e" writes bogus expire_days value into pw.conf Product: Base System Version: 10.4-RELEASE Hardware: Any OS: An