summaryrefslogtreecommitdiffstats
path: root/usr.bin/chpass/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-08-12 14:45:26 +0000
committerpeter <peter@FreeBSD.org>1996-08-12 14:45:26 +0000
commit6b18c72cfcfbbcb9ef4ef47dba3d309c3ad51740 (patch)
tree1527176a279bb4dc9a6e348a851ec74ee4f7e79b /usr.bin/chpass/Makefile
parent665b6e261ba076b16c6c02125a104c2297ae5a96 (diff)
downloadFreeBSD-src-6b18c72cfcfbbcb9ef4ef47dba3d309c3ad51740.zip
FreeBSD-src-6b18c72cfcfbbcb9ef4ef47dba3d309c3ad51740.tar.gz
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.
Diffstat (limited to 'usr.bin/chpass/Makefile')
-rw-r--r--usr.bin/chpass/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile
index 0f582b9..45d2767 100644
--- a/usr.bin/chpass/Makefile
+++ b/usr.bin/chpass/Makefile
@@ -17,6 +17,9 @@ MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
COPTS+= -DYP -I. -I${.CURDIR}/../../libexec/ypxfr \
-I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx
+#Some people need this, uncomment to activate
+#COPTS+= -DRESTRICT_FULLNAME_CHANGE
+
SRCS+= yppasswd_private_xdr.c yppasswd_comm.c yp_clnt.c \
yppasswd_clnt.c pw_yp.c ypxfr_misc.c
CLEANFILES= yp_clnt.c yp.h yppasswd_clnt.c yppasswd.h \
OpenPOWER on IntegriCloud