From 11666ce50ae9eab40af280a181a4c8b0355feff7 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 4 May 2010 11:34:13 +0000 Subject: [PATCH] Restore historical behaviour of only executing chflags on files that exist. This eliminates cosmetic errors of the form "chflags: ...: No such file or directory" during an installworld to an empty destination. --- usr.bin/chpass/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile index a5571d72ffba..566173e14d8d 100644 --- a/usr.bin/chpass/Makefile +++ b/usr.bin/chpass/Makefile @@ -38,7 +38,9 @@ MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1 beforeinstall: .for i in chpass chfn chsh ypchpass ypchfn ypchsh +.if exists(${DESTDIR}${BINDIR}/$i) -chflags noschg ${DESTDIR}${BINDIR}/$i +.endif .endfor .if !defined(NO_FSCHG)