pv-mtree: Factor out maybe_chmod()
I'm going to extend this to cope better with filesystems where we do not
own the files or otherwise cannot change their ownership, and that will
be easier if we can early-return on success or if there is nothing to do.
Signed-off-by:
Simon McVittie <smcv@collabora.com>
Loading
Please register or sign in to comment