Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

2 views
Skip to first unread message

samba...@samba.org

unread,
May 29, 2011, 11:48:41 AM5/29/11
to
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: way...@samba.org
ReportedBy: kierson....@gmail.com
QAContact: rsyn...@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.
--
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

0 new messages