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:
parent
2db9a1171c
commit
11666ce50a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user