]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Fix beforeinstall target:
authorAndrey A. Chernov <ache@FreeBSD.org>
Tue, 8 Nov 1994 14:59:22 +0000 (14:59 +0000)
committerAndrey A. Chernov <ache@FreeBSD.org>
Tue, 8 Nov 1994 14:59:22 +0000 (14:59 +0000)
use chflags /usr/bin/chpass ONLY if chpass present

chpass/Makefile

index 315593aa01f57763855e6a2df4c446a961f0e640..31dc84f7a91dec3de374638d4bbe18a0911474aa 100644 (file)
@@ -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