svn commit: r207613 - head/usr.bin/chpass
Ed Maste
emaste at FreeBSD.org
Tue May 4 11:34:15 UTC 2010
Author: emaste
Date: Tue May 4 11:34:13 2010
New Revision: 207613
URL: http://svn.freebsd.org/changeset/base/207613
Log:
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.
Modified:
head/usr.bin/chpass/Makefile
Modified: head/usr.bin/chpass/Makefile
==============================================================================
--- head/usr.bin/chpass/Makefile Tue May 4 11:25:04 2010 (r207612)
+++ head/usr.bin/chpass/Makefile Tue May 4 11:34:13 2010 (r207613)
@@ -38,7 +38,9 @@ MLINKS+= chpass.1 ypchpass.1 chpass.1 yp
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)
More information about the svn-src-all
mailing list