diff options
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/tramp-adb.el | 6 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index d3a11a866c0..ab13d4cf442 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -372,14 +372,14 @@ pass to the OPERATION." | |||
| 372 | "ls"))) | 372 | "ls"))) |
| 373 | 373 | ||
| 374 | (defun tramp-adb-get-toolbox (vec) | 374 | (defun tramp-adb-get-toolbox (vec) |
| 375 | "Get shell toolbox implementation: `toolbox' for orginal distributions | 375 | "Get shell toolbox implementation: `toolbox' for original distributions |
| 376 | or `busybox' for CynagenMode based distributions" | 376 | or `busybox' for CyanogenMod based distributions" |
| 377 | (with-tramp-connection-property vec "toolbox" | 377 | (with-tramp-connection-property vec "toolbox" |
| 378 | (tramp-message vec 5 "Checking shell toolbox implementation") | 378 | (tramp-message vec 5 "Checking shell toolbox implementation") |
| 379 | (cond | 379 | (cond |
| 380 | ((zerop (tramp-adb-command-exit-status vec "busybox")) 'busybox) | 380 | ((zerop (tramp-adb-command-exit-status vec "busybox")) 'busybox) |
| 381 | ((zerop (tramp-adb-command-exit-status vec "toolbox")) 'toolbox) | 381 | ((zerop (tramp-adb-command-exit-status vec "toolbox")) 'toolbox) |
| 382 | (t 'unkown)))) | 382 | (t 'unknown)))) |
| 383 | 383 | ||
| 384 | (defun tramp-adb--gnu-switches-to-ash | 384 | (defun tramp-adb--gnu-switches-to-ash |
| 385 | (switches) | 385 | (switches) |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index f8db03ee4d7..2c4aac0ac8a 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -3901,7 +3901,12 @@ Only works for Bourne-like shells." | |||
| 3901 | (with-parsed-tramp-file-name default-directory nil | 3901 | (with-parsed-tramp-file-name default-directory nil |
| 3902 | (mapconcat | 3902 | (mapconcat |
| 3903 | 'identity | 3903 | 'identity |
| 3904 | (tramp-get-connection-property v "remote-path" nil) | 3904 | (or |
| 3905 | ;; When `tramp-own-remote-path' is in `tramp-remote-path', | ||
| 3906 | ;; the remote path is only set in the session cache. | ||
| 3907 | (tramp-get-connection-property | ||
| 3908 | (tramp-get-connection-process v) "remote-path" nil) | ||
| 3909 | (tramp-get-connection-property v "remote-path" nil)) | ||
| 3905 | ":")) | 3910 | ":")) |
| 3906 | (getenv "PATH")))) | 3911 | (getenv "PATH")))) |
| 3907 | 3912 | ||