From 3e7520144ba150fc14b665076b6ce364e8c4f161 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 8 Nov 1994 14:59:22 +0000 Subject: [PATCH] Fix beforeinstall target: use chflags /usr/bin/chpass ONLY if chpass present --- usr.bin/chpass/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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