mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-01 08:17:38 +00:00
* lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf.
This commit is contained in:
parent
8167316fd6
commit
cf62106878
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user