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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to