Date: Sun, 5 Nov 2017 15:05:28 +0300 From: Yuri Pankov <yuripv@gmx.com> To: Victor Sudakov <vas@mpeks.tomsk.su>, freebsd-hackers@freebsd.org Subject: Re: "pw useradd -D -e" writes bogus expire_days value into pw.conf Message-ID: <1b21bd92-ae86-e81b-cf00-b2f7d9e06df7@gmx.com> In-Reply-To: <497adca8-9e9a-fa99-34cb-6073cd433d01@gmx.com> References: <20171105033222.GA34641@admin.sibptus.transneft.ru> <497adca8-9e9a-fa99-34cb-6073cd433d01@gmx.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 5 Nov 2017 14:45:40 +0300, Yuri Pankov wrote: > On Sun, 5 Nov 2017 10:32:22 +0700, Victor Sudakov wrote: >> Dear Colleagues, >> >> Could anyone please reproduce this bug, especially on an 11.x and 12.x >> branches? Or is it just me? >> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223431 > > Yes, it's the same on -CURRENT, but as the man page says, argument to -e > must be numeric in presence of -D, so most likely it just needs an > additional check. Added a simple patch to the PR -- check if argument is numeric, otherwise it's parsed as date, and the *timestamp* of account expiry is written as days into the pw.conf.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1b21bd92-ae86-e81b-cf00-b2f7d9e06df7>