Fixed improper deletion of mount-point hierarchies.
authorWayne Davison <wayned@samba.org>
Wed, 1 Apr 2009 03:15:42 +0000 (20:15 -0700)
committerWayne Davison <wayned@samba.org>
Wed, 1 Apr 2009 03:26:10 +0000 (20:26 -0700)
Fixes bug #6240.

NEWS
flist.c

diff --git a/NEWS b/NEWS
index d2acdbd..f8ef172 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -28,6 +28,10 @@ Changes since 3.0.5:
 
     - Fixed the --iconv conversion of symlinks when doing a local copy.
 
+    - Fixed a problem where --one-file-system was not stopping deletions on the
+      receiving side when a mount-point directory did not match a directory in
+      the transfer.
+
     - Fixed configure's erroneous use of target.
 
     - Fixed configure's --disable-debug option.
diff --git a/flist.c b/flist.c
index bc4eb45..a6107b4 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -3007,7 +3007,7 @@ struct file_list *get_dirlist(char *dirname, int dlen, int ignore_filter_rules)
 
        recurse = 0;
        xfer_dirs = 1;
-       send_directory(ignore_filter_rules ? -2 : -1, dirlist, dirname, dlen, 0);
+       send_directory(ignore_filter_rules ? -2 : -1, dirlist, dirname, dlen, FLAG_CONTENT_DIR);
        xfer_dirs = save_xfer_dirs;
        recurse = save_recurse;
        if (do_progress)