No need to forward --write-devices to a remote sender.
authorWayne Davison <wayned@samba.org>
Sun, 5 Apr 2020 19:01:32 +0000 (12:01 -0700)
committerWayne Davison <wayned@samba.org>
Sun, 5 Apr 2020 19:01:48 +0000 (12:01 -0700)
options.c

index d179f4752abf557302c9c0b9f0a0967b6c9a7ee6..92cec4abd0fdebcf7835dc32059f67415f466728 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2819,7 +2819,7 @@ void server_options(char **args, int *argc_p)
        if (relative_paths && !implied_dirs && (!am_sender || protocol_version >= 30))
                args[ac++] = "--no-implied-dirs";
 
-       if (write_devices)
+       if (write_devices && am_sender)
                args[ac++] = "--write-devices";
 
        if (remove_source_files == 1)