[Bug 8333] New: crash with hfs-compression.diff and possible fix
https://bugzilla.samba.org/show_bug.cgi?id=8333 Summary: crash with hfs-compression.diff and possible fix Product: rsync Version: 3.0.9 Platform: All OS/Version: Mac OS X Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: way...@samba.org ReportedBy: martinjo...@gmail.com QAContact: rsync...@samba.org Using the latest 3.0.9-pre1 with the hfs-compression patches, rsync crashed on the receiver side on files with hfs-compression (I used rsync -aHANXxuv --force-change --hfs-compression --fileflags). The crash was occurring in routine rsync_xal_set in xattrs.c. Near line 900 of the patched xattrs.c, we have memcpy(ptr + len, name, name_len); At this part of the code, for hfs-compressed attributes it appears that ptr is set to the dummy value UNREAD_DATA (which is defined to be char *1,). This memcpy should clearly not be performed for hfs-compression, and rsync crashes. I have temporarily got around this by adding: if (ptr = UNREAD_DATA) continue; just before the invalid memcpy. This allows rsync to run properly, although I can't be sure that it is the proper solution. -- 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
[Bug 8336] New: parent dir permission
https://bugzilla.samba.org/show_bug.cgi?id=8336 Summary: parent dir permission Product: rsync Version: 3.0.8 Platform: All OS/Version: Solaris Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: way...@samba.org ReportedBy: andras.porj...@ericsson.com QAContact: rsync...@samba.org Hi all, I use the following syntax: rsync -av --relative --link-dest=/a/refdir /a/sourcedir/./dirtree/to/transfer ::module/a/sourcedir in rsyncd.conf I set the following: uid=root gid=root use chroot=true -- the problem is the directory named sourcedir on the receiver side. rsyncd sets its ownership to root:root instead of either leaving it as is or taking the values from the sender (this is also valid for the directory a). Am I missed something, or is this a bug, or ?? Is there any way to set those rights? Thanks -- 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
Not creating folders on destination
Hi, I'm looking for a way to synchronize files without creating any folder on destination. Just "feed" any existing folder on destination side with files. Here is an example: Imagine I have that source : a/ a/x.txt b/ b/y.txt And that I have this destination : a/ a/z.txt The wanted result of "rsync source destination" : a/ a/x.txt a/z.txt Of course my real situation involves thousand files/folders structure and I would like not to use explicit list of synced folders. Is there any rsync built-in option/exclude/filter combination that could produce this? If not, is there any clean workaround outside rsync? For information, this is really easy to get this kind of situations, in my case I have: A server with 2 disks, let's say A & B. And a local drive C. I usually use rsync to sync (and merge) remote A & B into local C. (A+B >> C) Then sometimes I just want to sync back some C files (by include/exclude rules) into remote A and/or B. (C >> A) (C >> B) Side note: this question is also posted there : http://stackoverflow.com/questions/6857333/rsync-synchronizing-files-only-without-creating-folders-on-destination Thanks, Vincent.-- 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
[Bug 8336] --implied-dirs should include the file-list root by default
https://bugzilla.samba.org/show_bug.cgi?id=8336 Matt McCutchen changed: What|Removed |Added Summary|parent dir permission |--implied-dirs should ||include the file-list root ||by default --- Comment #1 from Matt McCutchen 2011-07-28 19:09:12 UTC --- The "a" directory is outside the scope of the file list. Rsync is not responsible for its attributes. "sourcedir" on the destination is at the file-list root. Rsync does not include the file-list root as an implied dir unless you write an extra "." in the source arg: /a/sourcedir/./.g/dirtree/to/transfer . Leaving out the file-list root seems like a gratuitous special case to me. Wayne, is there a reason for this (other than backward compatibility now that rsync has been doing it)? -- 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