Would you expect --perms -M--fake-super to set the file mode to the original one?
jimis at gmx.net
Mon Mar 16 22:33:06 UTC 2020
According to --help:
--fake-super store/recover privileged attrs using xattrs
So I would assume which mode it uses when it reads the file,
depends on whether this option is on or off.
On Monday, March 16, 2020 9:09:36 PM CET, Kevin Korb via rsync wrote:
> I don't believe it is possible. I think the misunderstanding stems from
> the fact that the permissions are even stored in the xattr. They don't
> need to be there but they may as well be. They don't take much space.
> The real question would be when rsync reads the file to restore it and
> the file perms are different than the ones in the xattr which set does
> it use?
> On 3/16/20 10:01 AM, Dimitrios Apostolou via rsync wrote:
>> Thanks. This is a bit counter-intuitive to me. So how would you tell
>> rsync to store the original permissions in the xattr, but do not touch
>> the real file mode?
>> On Thursday, March 12, 2020 6:26:18 PM CET, Kevin Korb via
>> rsync wrote: ...
More information about the rsync