samba-bugs@samba.org
2007-Sep-18 03:45 UTC
DO NOT REPLY [Bug 4979] New: readdir() failure results in remote deletes
https://bugzilla.samba.org/show_bug.cgi?id=4979
Summary: readdir() failure results in remote deletes
Product: rsync
Version: 3.0.0
Platform: PPC
OS/Version: Mac OS X
Status: NEW
Severity: major
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: joe07734@gmail.com
QAContact: rsync-qa@samba.org
I'm using rsync 3.0 to duplicate one hard drive to another. Today the source
drive failed, but in a way that left it appearing to be online and partially
functional. When I attempted to use rsync it reported:
rsync: readdir("/Volumes/KidD/."): Input/output error (5)
And then proceeded to delete every file and directory on the remote volume. It
appears that rsync is not handling this error properly, and that it's
treating
it as an empty directory.
The problem is in send_directory() in flist.c. opendir() apparently worked on
my bad volume but readdir() failed. I don't grok the code well enough to
suggest a patch, but I see that errno gets reported at the bottom of the
function but it doesn't short-circuit the remainder of the code, in the way
the
error handling on opendir() does earlier in the routine. Is send_if_directory()
still getting called? Does this look like an empty directory to the remote
rsync?
rsync built with cvs root a week or two ago.
rsync command:
sudo ./rsync --rsync-path=/alias/upkeep/rsync --verbose --archive --xattrs
--delete --stats /Volumes/KidD/ /Volumes/KidD_b/
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2007-Oct-14 21:40 UTC
DO NOT REPLY [Bug 4979] readdir() failure results in remote deletes
https://bugzilla.samba.org/show_bug.cgi?id=4979
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #1 from wayned@samba.org 2007-10-14 16:40 CST -------
This is fixed in the CVS version, and will be present in the 3.0.0pre3 release
(when that occurs). Thanks for the report!
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
Possibly Parallel Threads
- DO NOT REPLY [Bug 3430] New: Error with ACL-patch and -x on mountpoint
- DO NOT REPLY [Bug 4981] New: iconv confusion
- windows compilation problem
- [Bug 13445] New: Fuzzy searching in link-dest tries to open regular file as directory
- DO NOT REPLY [Bug 7057] New: Buffer overflow when sending a file with long name