diff options
author | emaste <emaste@FreeBSD.org> | 2010-05-04 11:34:13 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2010-05-04 11:34:13 +0000 |
commit | 249847477313ecfdf314f47b62fb935897c2a5f4 (patch) | |
tree | 8a7a65e7291d605830b3e10fb93e5248b323e4d2 /usr.bin/chpass | |
parent | 502f87be800745c18b2239898045c24a423da3a3 (diff) | |
download | FreeBSD-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/Makefile | 2 |
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) |