[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master cf62106: * lisp/net/tramp-sh.el (tramp-set-remote-p
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master cf62106: * lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf. |
Date: |
Fri, 28 Dec 2018 04:22:50 -0500 (EST) |
branch: master
commit cf62106878ef76592a90fbe584927003b5420f99
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
* lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o
getconf.
---
lisp/net/tramp-sh.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 789d16c..991a210 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master cf62106: * lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf.,
Michael Albinus <=