Hi,

it looks like commit 5d614887 introduced an issue with the rsync method which
occurs unless tramp-use-ssh-controlmaster-options is t and
tramp-ssh-controlmaster-options is non-empty.

When opening a file larger than tramp-copy-size-limit using the rsync method
the environment variable RSYNC_RSH is set to "", which causes the error
"rsync: [Receiver] Failed to exec server: No such file or directory (2)".

The attached patch fixes the issue for me.

Best regards

Martin
diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el
index 0416d15f..fbb122e7 100644
--- a/lisp/tramp-sh.el
+++ b/lisp/tramp-sh.el
@@ -202,7 +202,7 @@ (tramp--with-startup
                 (tramp-copy-program         "rsync")
                 (tramp-copy-args            (("-t" "%k") ("-p") ("-r") ("-s")
 					     ("-c")))
-                (tramp-copy-env             (("RSYNC_RSH") ("ssh" "%c")))
+                (tramp-copy-env             (("RSYNC_RSH") ("ssh") ("%c")))
                 (tramp-copy-keep-date       t)
                 (tramp-copy-keep-tmpfile    t)
                 (tramp-copy-recursive       t)))

Reply via email to