-
Michael Hanselmann authored
This avoids many calls to chmod(2) and chown(2), and thereby ctime updates. Since I had to update the unittests anyway I untangled the code a bit, split it into more separate functions and added some more tests. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: René Nussbaumer <rn@google.com>
c3f54085