The Samba-Bugzilla – Bug 1414
Using --relative (-R) with root-level files can transfer the wrong data
Last modified: 2004-05-30 02:20:24 UTC
There is a bug in the internal sorting of the file list that only affects the
--relative option when files are specified at the root, e.g. "/" and "/*".
(Note: this "rootness" also affects modules with chroot set.)
The symptons are that some files are transferred with data from another file.
Avoiding unnecessary use of the -R option is the easiest way to avoid this
Created attachment 533 [details]
Fix the file-name sort
The code in f_name_cmp() would sort a name wrong if it had a dirname value that
was an empty string (not a NULL string). This patches fixes the sort to work
just like older versions are expecting.
Fix has been checked into CVS for release.
Fix released in 2.6.2.