aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2018-12-28 10:22:42 +0100
committerMichael Albinus2018-12-28 10:22:42 +0100
commitcf62106878ef76592a90fbe584927003b5420f99 (patch)
tree3c11267e603cb96ee0e89c46a0a413b9aef6b11e
parent8167316fd6406adbeb8fe91db9ee59e2f47bddb0 (diff)
downloademacs-cf62106878ef76592a90fbe584927003b5420f99.tar.gz
emacs-cf62106878ef76592a90fbe584927003b5420f99.zip
* lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf.
-rw-r--r--lisp/net/tramp-sh.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 789d16cd067..991a2102634 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -3960,8 +3960,10 @@ variable PATH."
3960 (format "PATH=%s; export PATH" 3960 (format "PATH=%s; export PATH"
3961 (mapconcat 'identity (tramp-get-remote-path vec) ":"))) 3961 (mapconcat 'identity (tramp-get-remote-path vec) ":")))
3962 (pipe-buf 3962 (pipe-buf
3963 (with-tramp-connection-property vec "pipe-buf" 3963 (or (with-tramp-connection-property vec "pipe-buf"
3964 (tramp-send-command-and-read vec "getconf PIPE_BUF /"))) 3964 (tramp-send-command-and-read
3965 vec "getconf PIPE_BUF / 2>/dev/null || echo nil" 'noerror))
3966 4096))
3965 tmpfile) 3967 tmpfile)
3966 (tramp-message vec 5 "Setting $PATH environment variable") 3968 (tramp-message vec 5 "Setting $PATH environment variable")
3967 (if (< (length command) pipe-buf) 3969 (if (< (length command) pipe-buf)