diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-11-08 14:59:22 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-11-08 14:59:22 +0000 |
commit | ad537eda385b2019f3fbc8ed1fabae477476bf29 (patch) | |
tree | 6a274c1d49f9a7c21a7879ab61a82dc50aa0850e | |
parent | 002ca5705277d8b6fd7079fdc89f2d09687ac638 (diff) | |
download | pw-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
-rw-r--r-- | chpass/Makefile | 2 |
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 |