summaryrefslogtreecommitdiffstats
path: root/usr.bin/chpass
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2010-05-04 11:34:13 +0000
committeremaste <emaste@FreeBSD.org>2010-05-04 11:34:13 +0000
commit249847477313ecfdf314f47b62fb935897c2a5f4 (patch)
tree8a7a65e7291d605830b3e10fb93e5248b323e4d2 /usr.bin/chpass
parent502f87be800745c18b2239898045c24a423da3a3 (diff)
downloadFreeBSD-src-249847477313ecfdf314f47b62fb935897c2a5f4.zip
FreeBSD-src-249847477313ecfdf314f47b62fb935897c2a5f4.tar.gz
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.
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r--usr.bin/chpass/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile
index a5571d7..566173e 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)
OpenPOWER on IntegriCloud