Make do_recv() reset copy_unsafe_links too (just like it does for
authorWayne Davison <wayned@samba.org>
Sun, 10 Feb 2008 05:33:13 +0000 (21:33 -0800)
committerWayne Davison <wayned@samba.org>
Sun, 10 Feb 2008 05:33:13 +0000 (21:33 -0800)
copy_links and copy_dirlinks).

main.c

diff --git a/main.c b/main.c
index 649f2ef649ccf98770ddb6c9f2667060bc1a7b41..b8bbf5cfd1283fab1a4d859cb2e4f9aacc825c90 100644 (file)
--- a/main.c
+++ b/main.c
@@ -45,6 +45,7 @@ extern int got_xfer_error;
 extern int module_id;
 extern int copy_links;
 extern int copy_dirlinks;
+extern int copy_unsafe_links;
 extern int keep_dirlinks;
 extern int preserve_hard_links;
 extern int protocol_version;
@@ -759,7 +760,7 @@ static int do_recv(int f_in, int f_out, char *local_name)
 
        /* The receiving side mustn't obey this, or an existing symlink that
         * points to an identical file won't be replaced by the referent. */
-       copy_links = copy_dirlinks = 0;
+       copy_links = copy_dirlinks = copy_unsafe_links = 0;
 
 #ifdef SUPPORT_HARD_LINKS
        if (preserve_hard_links && !inc_recurse)