Function: tramp-get-local-uid
tramp-get-local-uid is a byte-compiled function defined in
tramp.el.gz.
Signature
(tramp-get-local-uid ID-FORMAT)
Documentation
The uid of the local user, in ID-FORMAT.
ID-FORMAT valid values are string and integer.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-get-local-uid (id-format)
"The uid of the local user, in ID-FORMAT.
ID-FORMAT valid values are `string' and `integer'."
;; We use key nil for local connection properties.
(with-tramp-connection-property nil (format "uid-%s" id-format)
(if (equal id-format 'integer) (user-uid) (user-login-name))))