Control: tags -1 moreinfo
The current code in question is:
if ((sb_create.st_uid != sb->st_uid || sb_create.st_gid != sb->st_gid) &&
fchown(fd, sb->st_uid, sb->st_gid)) {
message(MESS_ERROR, "error setting owner of %s to uid %d and
gid %d: %s\n",
fileName, sb->st_uid, sb->st_gid, strerror(errno));
close(fd);
return -1;
}
So (f)chmod should be only run, if it needs to run (e.g. the
compression did not preserve the same owner/group).
Can you reproduce your issue with 3.14.0-3?
Best regards
Christian Göttsche