]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp-sh.el (tramp-get-remote-id): Check also for "gid".
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 12 Oct 2014 18:27:37 +0000 (20:27 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 12 Oct 2014 18:27:37 +0000 (20:27 +0200)
lisp/ChangeLog
lisp/net/tramp-sh.el

index f6807b9a5081b5ffb5773e7de9a63686a442f3d0..2094fdc30cc9574d4cf223212c46eedd774972ec 100644 (file)
@@ -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
index a67ca32bbaa715c34f3a963e95cced7d2e02e6c2..65b64233e5c9adca7c6668a2f31feecdce5ca65b 100644 (file)
@@ -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