Function: tramp-sh-handle-get-remote-gid
tramp-sh-handle-get-remote-gid is a byte-compiled function defined in
tramp-sh.el.gz.
Signature
(tramp-sh-handle-get-remote-gid VEC ID-FORMAT)
Documentation
The gid of the remote connection VEC, in ID-FORMAT.
ID-FORMAT valid values are string and integer.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defun tramp-sh-handle-get-remote-gid (vec id-format)
"The gid of the remote connection VEC, in ID-FORMAT.
ID-FORMAT valid values are `string' and `integer'."
;; The result is cached in `tramp-get-remote-gid'.
(ignore-errors
(cond
((tramp-get-remote-id vec)
(tramp-send-command vec (tramp-get-remote-id vec)))
((tramp-get-remote-perl vec)
(tramp-maybe-send-script vec tramp-perl-id "tramp_perl_id")
(tramp-send-command vec "tramp_perl_id"))
((tramp-get-remote-python vec)
(tramp-maybe-send-script vec tramp-python-id "tramp_python_id")
(tramp-send-command vec "tramp_python_id")))
(tramp-read-id-output vec)
(tramp-get-connection-property vec (format "gid-%s" id-format))))