Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2014 19:50:51 +0000 (UTC)
From:      "Simon J. Gerraty" <sjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r275650 - head/usr.sbin/mtree
Message-ID:  <201412091950.sB9JopEL059734@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sjg
Date: Tue Dec  9 19:50:50 2014
New Revision: 275650
URL: https://svnweb.freebsd.org/changeset/base/275650

Log:
  -u and -U are supposed to affect existing files too.
  
  Reviewed by:	marcel

Modified:
  head/usr.sbin/mtree/verify.c

Modified: head/usr.sbin/mtree/verify.c
==============================================================================
--- head/usr.sbin/mtree/verify.c	Tue Dec  9 18:03:25 2014	(r275649)
+++ head/usr.sbin/mtree/verify.c	Tue Dec  9 19:50:50 2014	(r275650)
@@ -233,7 +233,7 @@ miss(NODE *p, char *tail)
 		miss(p->child, tp + 1);
 		*tp = '\0';
 
-		if (!create)
+		if (!create && !uflag)
 			continue;
 		if (chown(path, p->st_uid, p->st_gid) == -1) {
 			serr = errno;



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