From owner-svn-src-head@FreeBSD.ORG Tue Dec 9 19:50:51 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4476E1DD; Tue, 9 Dec 2014 19:50:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3101AB89; Tue, 9 Dec 2014 19:50:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sB9JopPe059735; Tue, 9 Dec 2014 19:50:51 GMT (envelope-from sjg@FreeBSD.org) Received: (from sjg@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sB9JopEL059734; Tue, 9 Dec 2014 19:50:51 GMT (envelope-from sjg@FreeBSD.org) Message-Id: <201412091950.sB9JopEL059734@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sjg set sender to sjg@FreeBSD.org using -f From: "Simon J. Gerraty" Date: Tue, 9 Dec 2014 19:50:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r275650 - head/usr.sbin/mtree X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2014 19:50:51 -0000 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;