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

Reply via email to