BugReport: rsync fails it's own "regression" test "chmod-option"

Wayne Davison wayned at samba.org
Sat Dec 16 08:01:15 GMT 2006


On Fri, Dec 15, 2006 at 01:43:38PM -0800, Hugh Daniel wrote:
> A bit of research show that no one has mentioned this test since it
> was last worked on in late September

That's because the test works fine for most people.  Apparently it only
fails when someone runs as root with a non-zero default group (which
doesn't seem to affect many people).

> The slightly amusing reason for this is that the test is not run
> unless one is EUID==root

No, that test runs fine as a normal user.  It is other tests that say
they are being skipped due to not being root.  The root-required tests
will also succeed if the fakeroot command is around (the test code uses
fakeroot for just the tests that need it without you having to do
anything special).  Thus, on my system, "make test" never skips any of
the tests, even when run as my normal login user.

> I suspect it's more likely a test failure then a code failure

Yup.  I fixed the problem by changing the relevant rsync options to
preserve the group (and also the user while I was at it).

..wayne..


More information about the rsync mailing list