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

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