From: Michael Albinus Date: Fri, 28 Dec 2018 09:22:42 +0000 (+0100) Subject: * lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf. X-Git-Tag: emacs-27.0.90~3905 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cf62106878ef76592a90fbe584927003b5420f99;p=emacs.git * lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf. --- 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." (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)