diff options
| author | Michael Albinus | 2014-10-12 20:27:37 +0200 |
|---|---|---|
| committer | Michael Albinus | 2014-10-12 20:27:37 +0200 |
| commit | dfbb4d511ee5b0a6234ffa393deaaaf56a2651b7 (patch) | |
| tree | 5fdf9796e491c1d82af6e1d135e7ed91856605d0 | |
| parent | 80b20192ee51bc7110eb519d0163f2ac4af590b7 (diff) | |
| download | emacs-dfbb4d511ee5b0a6234ffa393deaaaf56a2651b7.tar.gz emacs-dfbb4d511ee5b0a6234ffa393deaaaf56a2651b7.zip | |
* net/tramp-sh.el (tramp-get-remote-id): Check also for "gid".
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 15 |
2 files changed, 12 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f6807b9a508..2094fdc30cc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-10-12 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp-sh.el (tramp-get-remote-id): Check also for "gid". | ||
| 4 | |||
| 1 | 2014-10-11 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2014-10-11 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * cus-start.el (all): Add missing ns and boolean to | 7 | * cus-start.el (all): Add missing ns and boolean to |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index a67ca32bbaa..65b64233e5c 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -5228,13 +5228,14 @@ Return ATTR." | |||
| 5228 | (with-tramp-connection-property vec "id" | 5228 | (with-tramp-connection-property vec "id" |
| 5229 | (tramp-message vec 5 "Finding POSIX `id' command") | 5229 | (tramp-message vec 5 "Finding POSIX `id' command") |
| 5230 | (catch 'id-found | 5230 | (catch 'id-found |
| 5231 | (let ((dl (tramp-get-remote-path vec)) | 5231 | (dolist (cmd '("id" "gid")) |
| 5232 | result) | 5232 | (let ((dl (tramp-get-remote-path vec)) |
| 5233 | (while (and dl (setq result (tramp-find-executable vec "id" dl t t))) | 5233 | result) |
| 5234 | ;; Check POSIX parameter. | 5234 | (while (and dl (setq result (tramp-find-executable vec cmd dl t t))) |
| 5235 | (when (tramp-send-command-and-check vec (format "%s -u" result)) | 5235 | ;; Check POSIX parameter. |
| 5236 | (throw 'id-found result)) | 5236 | (when (tramp-send-command-and-check vec (format "%s -u" result)) |
| 5237 | (setq dl (cdr dl))))))) | 5237 | (throw 'id-found result)) |
| 5238 | (setq dl (cdr dl)))))))) | ||
| 5238 | 5239 | ||
| 5239 | (defun tramp-get-remote-uid-with-id (vec id-format) | 5240 | (defun tramp-get-remote-uid-with-id (vec id-format) |
| 5240 | (tramp-send-command-and-read | 5241 | (tramp-send-command-and-read |