* net/tramp-sh.el (tramp-get-remote-id): Check also for "gid".
This commit is contained in:
parent
80b20192ee
commit
dfbb4d511e
2 changed files with 12 additions and 7 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2014-10-12 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* net/tramp-sh.el (tramp-get-remote-id): Check also for "gid".
|
||||
|
||||
2014-10-11 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* cus-start.el (all): Add missing ns and boolean to
|
||||
|
|
|
|||
|
|
@ -5228,13 +5228,14 @@ Return ATTR."
|
|||
(with-tramp-connection-property vec "id"
|
||||
(tramp-message vec 5 "Finding POSIX `id' command")
|
||||
(catch 'id-found
|
||||
(let ((dl (tramp-get-remote-path vec))
|
||||
result)
|
||||
(while (and dl (setq result (tramp-find-executable vec "id" dl t t)))
|
||||
;; Check POSIX parameter.
|
||||
(when (tramp-send-command-and-check vec (format "%s -u" result))
|
||||
(throw 'id-found result))
|
||||
(setq dl (cdr dl)))))))
|
||||
(dolist (cmd '("id" "gid"))
|
||||
(let ((dl (tramp-get-remote-path vec))
|
||||
result)
|
||||
(while (and dl (setq result (tramp-find-executable vec cmd dl t t)))
|
||||
;; Check POSIX parameter.
|
||||
(when (tramp-send-command-and-check vec (format "%s -u" result))
|
||||
(throw 'id-found result))
|
||||
(setq dl (cdr dl))))))))
|
||||
|
||||
(defun tramp-get-remote-uid-with-id (vec id-format)
|
||||
(tramp-send-command-and-read
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue