[Bug 8183] New: rsync 3.0.8 can't modify read-only directories created on the same run

samba-bugs at samba.org samba-bugs at samba.org
Sun May 29 09:48:41 MDT 2011


https://bugzilla.samba.org/show_bug.cgi?id=8183

           Summary: rsync 3.0.8 can't modify read-only directories created
                    on the same run
           Product: rsync
           Version: 3.0.8
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: kierson.anderson at gmail.com
         QAContact: rsync-qa at samba.org


I have a directory tree that is composed of read-only directories.  Prior to
3.0.8, it was possible to create backup copies of the directory tree using
rsync -a, but with 3.0.8, I'm getting permission denied errors from rsync as it
tries to create subdirectories and temporary files.  There is no problem if the
read-only directory already exists in the destination tree, even if it is
read-only.  As a consequence, multiple runs of rsync eventually succeed in
copying the entire tree.  The following tcsh interaction (on a 64-bit Fedora 13
system) demonstrates the problem.  I have not tried to reproduce the problem on
any other operating system.

% mkdir -p /tmp/t1/t2/t3
% touch /tmp/t1/t2/t3/t4
% chmod -R 550 /tmp/t1
% rsync -a /tmp/t1/ /tmp/t1a
rsync: recv_generator: mkdir "/tmp/t1a/t2" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync error: some files/attrs were not transferred (see previous errors) (code
>
% rsync -a /tmp/t1/ /tmp/t1a
rsync: recv_generator: mkdir "/tmp/t1a/t2/t3" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync error: some files/attrs were not transferred (see previous errors) (code
>
% rsync -a /tmp/t1/ /tmp/t1a
rsync: mkstemp "/tmp/t1a/t2/t3/.t4.kYCSKH" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code
>
% rsync -a /tmp/t1/ /tmp/t1a
%

Each run creates a bit more of the destination tree until the entire tree is
finally copied, and the last run gives no errors.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the rsync mailing list