summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-05-30 14:03:53 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-05-30 14:03:53 +0000
commitfc4ff1175a8fe555e19572edc3793a1fd67bc86f (patch)
tree562aff747da922de7497e795395d54bef057689b /usr.bin
parent6c494f2fb27dce31512982fed967a7a7e8526e1a (diff)
downloadFreeBSD-src-fc4ff1175a8fe555e19572edc3793a1fd67bc86f.zip
FreeBSD-src-fc4ff1175a8fe555e19572edc3793a1fd67bc86f.tar.gz
Add a beforeinstall rule to turn off the immutable flag on chpass so you
can install a new copy of it.
Diffstat (limited to 'usr.bin')
-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 b68ad10..315593a 100644
--- a/usr.bin/chpass/Makefile
+++ b/usr.bin/chpass/Makefile
@@ -9,6 +9,9 @@ CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw
LINKS= ${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
+beforeinstall:
+ chflags noschg /usr/bin/chpass
+
afterinstall:
chflags schg /usr/bin/chpass
OpenPOWER on IntegriCloud