-u and -U are supposed to affect existing files too.

Reviewed by:	marcel
This commit is contained in:
Simon J. Gerraty 2014-12-09 19:50:50 +00:00
parent f35b3592e6
commit dc981c8d1b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275650

View File

@ -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;