Re: Would you expect --perms -M--fake-super to set the file mode to the original one?

2020-03-16 Thread Dimitrios Apostolou via rsync
According to --help: --fake-superstore/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 possi

Re: Would you expect --perms -M--fake-super to set the file mode to the original one?

2020-03-16 Thread Kevin Korb via rsync
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 per

Re: Would you expect --perms -M--fake-super to set the file mode to the original one?

2020-03-16 Thread Dimitrios Apostolou via rsync
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: I would expect that the sending rsync would only send the perms

Re: Would you expect --perms -M--fake-super to set the file mode to the original one?

2020-03-12 Thread Kevin Korb via rsync
I would expect that the sending rsync would only send the perms provided modified by the --chmod. I wouldn't expect the receiver to even know the other permissions. On 3/12/20 1:23 PM, Dimitrios Apostolou via rsync wrote: > Thank you for the feedback, I'm glad to see that different people see > t

Re: Would you expect --perms -M--fake-super to set the file mode to the original one?

2020-03-12 Thread Dimitrios Apostolou via rsync
Thank you for the feedback, I'm glad to see that different people see the issue differently. As a followup question, what would you expect this to do: rsync --perms --chmod g+rX -M--fake-super src dst I would expect it to store the original permissions in the xattr, while modifying the real fil

Re: Would you expect --perms -M--fake-super to set the file mode to the original one?

2020-03-12 Thread Kevin Korb via rsync
Permissions don't require super. Any place where permissions can't be stored certainly can't handle xattrs either. So, I wouldn't expect --fake-super to affect --perms at all. On 3/12/20 12:46 PM, Dimitrios Apostolou via rsync wrote: > rsync --perms -M--fake-super src dst > > For me, this comma

Would you expect --perms -M--fake-super to set the file mode to the original one?

2020-03-12 Thread Dimitrios Apostolou via rsync
rsync --perms -M--fake-super src dst For me, this command means that rsync should save the original perms in the xattr, and leave the real file mode to the umask default. Currently it also modifies the real file mode, and there is no way to store something different in the xattr. According to