Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 2010 11:34:14 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207613 - head/usr.bin/chpass
Message-ID:  <201005041134.o44BYENg000724@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005041134.o44BYENg000724>