Don't bail out if chmod(2) or chown(2) fails

Keep processing all the files specified.
This commit is contained in:
sin 2014-04-22 12:11:46 +01:00
parent b700d5a8ed
commit f488547779
2 changed files with 2 additions and 3 deletions

View File

@ -77,7 +77,7 @@ chmodr(const char *path)
break;
}
if(chmod(path, st.st_mode) == -1)
eprintf("chmod %s:", path);
weprintf("chmod %s:", path);
if(rflag)
recurse(path, chmodr);
}

View File

@ -70,8 +70,7 @@ chownpwgr(const char *path)
{
if(chown(path, pw ? pw->pw_uid : (uid_t)-1,
gr ? gr->gr_gid : (gid_t)-1) == -1)
eprintf("chown %s:", path);
weprintf("chown %s:", path);
if(rflag)
recurse(path, chownpwgr);
}