[EMAIL PROTECTED] (Kai Gro�johann) writes:

> There's this piece of code in tramp.el; does anyone know what it does?

It's sloppy code from me.

> (defun tramp-parse-passwd (filename)
>   "Return a list of (user host) tuples allowed to access.
> Host is always \"localhost\"."
> 
>   (let (res)
>     (if (and (symbolp 'user) (zerop (length user)))
>       '(("root" nil))
> 
> Why does it refer to the symbol user?

It assumes that tramp-parse-passwd is called from
tramp-completion-handle-file-name-all-completions. Intention is to
provide "root@localhost" as default for su-alike user/host completion.

It's somewhere in a dusty part of my todo list making it clean (I know
the compiler warning). Maybe I should do it now, finally ...

Best regards, Michael.



_______________________________________________
Tramp-devel mailing list
[EMAIL PROTECTED]
http://mail.nongnu.org/mailman/listinfo/tramp-devel

Reply via email to