summaryrefslogtreecommitdiffstats
path: root/chpass/Makefile
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
commitad537eda385b2019f3fbc8ed1fabae477476bf29 (patch)
tree6a274c1d49f9a7c21a7879ab61a82dc50aa0850e /chpass/Makefile
parent002ca5705277d8b6fd7079fdc89f2d09687ac638 (diff)
downloadpw-darwin-ad537eda385b2019f3fbc8ed1fabae477476bf29.tar.gz
pw-darwin-ad537eda385b2019f3fbc8ed1fabae477476bf29.tar.zst
pw-darwin-ad537eda385b2019f3fbc8ed1fabae477476bf29.zip
Fix beforeinstall target:
use chflags /usr/bin/chpass ONLY if chpass present
Diffstat (limited to 'chpass/Makefile')
-rw-r--r--chpass/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/chpass/Makefile b/chpass/Makefile
index 315593a..31dc84f 100644
--- a/chpass/Makefile
+++ b/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