summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-11-08 14:59:22 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-11-08 14:59:22 +0000
commit3e7520144ba150fc14b665076b6ce364e8c4f161 (patch)
tree0c6fbff4137eba871c4f109186bab7be87cf2d21
parentdbdc2966874e04542fb5f951d41d77d08099ea94 (diff)
downloadsrc-test2-3e7520144ba150fc14b665076b6ce364e8c4f161.tar.gz
src-test2-3e7520144ba150fc14b665076b6ce364e8c4f161.zip
Fix beforeinstall target:
use chflags /usr/bin/chpass ONLY if chpass present
Notes
Notes: svn path=/head/; revision=4287
-rw-r--r--usr.bin/chpass/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile
index 315593aa01f5..31dc84f7a91d 100644
--- a/usr.bin/chpass/Makefile
+++ b/usr.bin/chpass/Makefile
@@ -10,7 +10,7 @@ LINKS= ${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
beforeinstall:
- chflags noschg /usr/bin/chpass
+ [ -r /usr/bin/chpass ] && chflags noschg /usr/bin/chpass
afterinstall:
chflags schg /usr/bin/chpass