Commit cf621068 authored by Michael Albinus's avatar Michael Albinus

* lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf.

parent 8167316f
Pipeline #388 failed with stage
in 9 seconds
......@@ -3960,8 +3960,10 @@ variable PATH."
(format "PATH=%s; export PATH"
(mapconcat 'identity (tramp-get-remote-path vec) ":")))
(pipe-buf
(with-tramp-connection-property vec "pipe-buf"
(tramp-send-command-and-read vec "getconf PIPE_BUF /")))
(or (with-tramp-connection-property vec "pipe-buf"
(tramp-send-command-and-read
vec "getconf PIPE_BUF / 2>/dev/null || echo nil" 'noerror))
4096))
tmpfile)
(tramp-message vec 5 "Setting $PATH environment variable")
(if (< (length command) pipe-buf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment