Rsync (3.1.1) reports directories but not files with changed permissions

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Rsync (3.1.1) reports directories but not files with changed permissions

Joó Ádám
Hello,

$ ssh remote mkdir /tmp/tests
$ ssh remote mkdir /tmp/tests/test.d
$ ssh remote touch /tmp/tests/test

$ ssh remote chmod 700 /tmp/tests
$ ssh remote chmod 700 /tmp/tests/test.d
$ ssh remote chmod 600 /tmp/tests/test

$ rsync -rp remote:/tmp/tests /tmp

$ chmod o+r /tmp/tests/test.d
$ chmod o+r /tmp/tests/test

$ rsync -rpcv --info=flist0,stats0 remote:/tmp/tests /tmp -n -i
.f...p..... tests/test
.d...p..... tests/test.d/

$ rsync -rpcv --info=flist0,stats0 remote:/tmp/tests /tmp -n
tests/test.d/

I would expect rsync to report changes in permissions consistently
both in case of files and directories.


Ádám

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

Re: Rsync (3.1.1) reports directories but not files with changed permissions

Joó Ádám
Can anyone at least confirm that this is an issue or if I’m doing
something wrong?


Thanks,
Ádám

On Tue, Jul 12, 2016 at 5:17 PM, Joó Ádám <[hidden email]> wrote:

> Hello,
>
> $ ssh remote mkdir /tmp/tests
> $ ssh remote mkdir /tmp/tests/test.d
> $ ssh remote touch /tmp/tests/test
>
> $ ssh remote chmod 700 /tmp/tests
> $ ssh remote chmod 700 /tmp/tests/test.d
> $ ssh remote chmod 600 /tmp/tests/test
>
> $ rsync -rp remote:/tmp/tests /tmp
>
> $ chmod o+r /tmp/tests/test.d
> $ chmod o+r /tmp/tests/test
>
> $ rsync -rpcv --info=flist0,stats0 remote:/tmp/tests /tmp -n -i
> .f...p..... tests/test
> .d...p..... tests/test.d/
>
> $ rsync -rpcv --info=flist0,stats0 remote:/tmp/tests /tmp -n
> tests/test.d/
>
> I would expect rsync to report changes in permissions consistently
> both in case of files and directories.
>
>
> Ádám

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

Re: Rsync (3.1.1) reports directories but not files with changed permissions

Francis.Montagnac-2

Hi.

On Sun, 07 Aug 2016 20:00:46 +0200 Joó Ádám wrote:

> Can anyone at least confirm that this is an issue or if I’m doing
> something wrong?

This seems a bug yes. I checked that it shows up also when one uses
the --times option instead of --checksum.

Using -i (--itemize-changes) seems the only current possible turnaround.

Francis

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

Re: Rsync (3.1.1) reports directories but not files with changed permissions

Joó Ádám
Thank you, Francis. I have opened a ticket:
https://bugzilla.samba.org/show_bug.cgi?id=12131

Á

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html