Function: tramp-parse-passwd-group

tramp-parse-passwd-group is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-parse-passwd-group)

Documentation

Return a (user host) tuple allowed to access.

Host is always "localhost".

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-parse-passwd-group ()
   "Return a (user host) tuple allowed to access.
Host is always \"localhost\"."
   (let (result
	 (regexp (rx bol (group (regexp tramp-user-regexp)) ":")))
     (when (search-forward-regexp regexp (line-end-position) t)
       (setq result (list (match-string 1) "localhost")))
     (forward-line 1)
     result))