diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2010-05-04 11:34:13 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2010-05-04 11:34:13 +0000 |
| commit | cdcad430263413d73a85f0f677978dae1fd37d8d (patch) | |
| tree | f07072c33283f314851c55c0ceb976c794e858e6 | |
| parent | d14d0b2c1107f8cf2cb372a38f82146fca1a9a2a (diff) | |
| download | pw-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/Makefile | 2 |
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) |
