Avoid forwarding the --temp-dir option to the server when we're
authorWayne Davison <wayned@samba.org>
Sun, 29 Jan 2006 07:19:38 +0000 (07:19 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 29 Jan 2006 07:19:38 +0000 (07:19 +0000)
the receiver.

options.c

index 2d09017..bbec3e8 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1684,7 +1684,7 @@ void server_options(char **args,int *argc)
        else if (inplace)
                args[ac++] = "--inplace";
 
-       if (tmpdir) {
+       if (tmpdir && am_sender) {
                args[ac++] = "--temp-dir";
                args[ac++] = tmpdir;
        }