diff options
| author | Michael Albinus | 2011-06-04 16:11:26 +0200 |
|---|---|---|
| committer | Michael Albinus | 2011-06-04 16:11:26 +0200 |
| commit | 0c33dd17ea626c04fd26aa1358f1def2b6e072d5 (patch) | |
| tree | ee290de6d7c0cd670d9f83817e4a6ecc07c95bf0 | |
| parent | f8f91c2ba836b2b2f9b7f9c3768e39d76a8895c9 (diff) | |
| download | emacs-0c33dd17ea626c04fd26aa1358f1def2b6e072d5.tar.gz emacs-0c33dd17ea626c04fd26aa1358f1def2b6e072d5.zip | |
* net/tramp-sh.el (tramp-find-shell): Apply workaround also for
"SunOS 5.10".
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 75ab96c57a0..0e04adc9359 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2011-06-04 Michael Albinus <michael.albinus@gmx.de> | 1 | 2011-06-04 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 2 | ||
| 3 | * net/tramp-sh.el (tramp-find-shell): Apply workaround also for | ||
| 4 | "SunOS 5.10". | ||
| 5 | |||
| 6 | 2011-06-04 Michael Albinus <michael.albinus@gmx.de> | ||
| 7 | |||
| 3 | * net/tramp.el (tramp-set-completion-function, tramp-parse-rhosts) | 8 | * net/tramp.el (tramp-set-completion-function, tramp-parse-rhosts) |
| 4 | (tramp-parse-shosts, tramp-parse-sconfig, tramp-parse-shostkeys) | 9 | (tramp-parse-shosts, tramp-parse-sconfig, tramp-parse-shostkeys) |
| 5 | (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc) | 10 | (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc) |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 4ac523a2a17..025b4ab6cf3 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -3641,9 +3641,11 @@ file exists and nonzero exit status otherwise." | |||
| 3641 | (tramp-send-command vec "echo ~root" t) | 3641 | (tramp-send-command vec "echo ~root" t) |
| 3642 | (cond | 3642 | (cond |
| 3643 | ((or (string-match "^~root$" (buffer-string)) | 3643 | ((or (string-match "^~root$" (buffer-string)) |
| 3644 | ;; The default shell (ksh93) of OpenSolaris is buggy. | 3644 | ;; The default shell (ksh93) of OpenSolaris and Solaris |
| 3645 | (string-equal (tramp-get-connection-property vec "uname" "") | 3645 | ;; is buggy. We've got reports for "SunOS 5.10" and |
| 3646 | "SunOS 5.11")) | 3646 | ;; "SunOS 5.11" so far. |
| 3647 | (string-match (regexp-opt '("SunOS 5.10" "SunOS 5.11")) | ||
| 3648 | (tramp-get-connection-property vec "uname" ""))) | ||
| 3647 | (setq shell | 3649 | (setq shell |
| 3648 | (or (tramp-find-executable | 3650 | (or (tramp-find-executable |
| 3649 | vec "bash" (tramp-get-remote-path vec) t t) | 3651 | vec "bash" (tramp-get-remote-path vec) t t) |