]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add new option to chpass: -e "expire" ; change the account expire time
authorPeter Wemm <peter@FreeBSD.org>
Mon, 12 Aug 1996 14:45:26 +0000 (14:45 +0000)
committerPeter Wemm <peter@FreeBSD.org>
Mon, 12 Aug 1996 14:45:26 +0000 (14:45 +0000)
commit366982a550db78534cea42cb2890bf52e7663226
tree1527176a279bb4dc9a6e348a851ec74ee4f7e79b
parentce70b6caf86834a4ea9641f8e73b0b4c134b5710
Add new option to chpass:  -e "expire" ; change the account expire time
from a script as if it was done in the interactive editor.

When reassembling the gecos string, trim any excess trailing commas, they
look ugly in the passwd file. :-)

Have a simple Makefile tweak to prevent mortal users from changing their
fullname.  As ISP's we have seem some real bizzare stuff here..

When decoding the change/expire string, allow the month number as a
synonym for the name of the month.. (ie: 1 as well as Jan or January)
Note that using numbers means there's a chance that you can get bitten
if you're not used to the American DD-MM-YY order.
usr.bin/chpass/Makefile
usr.bin/chpass/chpass.c
usr.bin/chpass/edit.c
usr.bin/chpass/table.c
usr.bin/chpass/util.c