If we send --files-from to the remote server and relative-paths
authorWayne Davison <wayned@samba.org>
Wed, 22 Dec 2004 09:10:08 +0000 (09:10 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 22 Dec 2004 09:10:08 +0000 (09:10 +0000)
are not enabled, we need to also send --no-relative.

options.c

index e79f56f..70e210d 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1236,6 +1236,8 @@ void server_options(char **args,int *argc)
                        args[ac++] = "--files-from=-";
                        args[ac++] = "--from0";
                }
+               if (!relative_paths)
+                       args[ac++] = "--no-relative";
        }
 
        *argc = ac;