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.
This commit is contained in:
Ed Maste 2010-05-04 11:34:13 +00:00
parent 2db9a1171c
commit 11666ce50a

View File

@ -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)