summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2010-05-04 11:34:13 +0000
committerEd Maste <emaste@FreeBSD.org>2010-05-04 11:34:13 +0000
commitcdcad430263413d73a85f0f677978dae1fd37d8d (patch)
treef07072c33283f314851c55c0ceb976c794e858e6
parentd14d0b2c1107f8cf2cb372a38f82146fca1a9a2a (diff)
downloadpw-darwin-cdcad430263413d73a85f0f677978dae1fd37d8d.tar.gz
pw-darwin-cdcad430263413d73a85f0f677978dae1fd37d8d.zip
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.
-rw-r--r--chpass/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/chpass/Makefile b/chpass/Makefile
index a5571d7..566173e 100644
--- a/chpass/Makefile
+++ b/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)