Function: tramp-parse-rhosts-group
tramp-parse-rhosts-group is a byte-compiled function defined in
tramp.el.gz.
Signature
(tramp-parse-rhosts-group)
Documentation
Return a (user host) tuple allowed to access.
Either user or host may be nil.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-parse-rhosts-group ()
"Return a (user host) tuple allowed to access.
Either user or host may be nil."
(let (result
(regexp
(concat
"^\\(" tramp-host-regexp "\\)"
"\\([ \t]+" "\\(" tramp-user-regexp "\\)" "\\)?")))
(when (re-search-forward regexp (point-at-eol) t)
(setq result (append (list (match-string 3) (match-string 1)))))
(forward-line 1)
result))