From owner-cvs-usrbin Mon Aug 12 07:45:42 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA22526 for cvs-usrbin-outgoing; Mon, 12 Aug 1996 07:45:42 -0700 (PDT) Received: (from peter@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA22502; Mon, 12 Aug 1996 07:45:30 -0700 (PDT) Date: Mon, 12 Aug 1996 07:45:30 -0700 (PDT) From: Peter Wemm Message-Id: <199608121445.HAA22502@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/chpass Makefile chpass.c edit.c table.c util.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 96/08/12 07:45:28 Modified: usr.bin/chpass Makefile chpass.c edit.c table.c util.c Log: 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. Revision Changes Path 1.9 +3 -0 src/usr.bin/chpass/Makefile 1.11 +18 -7 src/usr.bin/chpass/chpass.c 1.8 +3 -0 src/usr.bin/chpass/edit.c 1.4 +4 -0 src/usr.bin/chpass/table.c 1.5 +10 -6 src/usr.bin/chpass/util.c