Subject: Re: bug#22188: 24.5; auth-source-search ignores netrc entries with port set

From: Andreas Schwab <[email-masked]>
Date: Thu, 24 Dec 2015 16:09:41 +0100

Alexey Veretennikov <[email-masked]> writes:

> The bug itself is fixed. However the behavior when port specified is
> still strange. Given the same test case, the 
>
> (dolist (account (auth-source-search :port 100 :max 999))
>   (print (plist-get account :host)))
>
> returns
>
> "mymachine1"
>
> "mymachine2"
>
> "mymachine3"
>
> Therefore all machines without ports and the one with the correct
> port. I assume there should be only one result returned, the machine
> with the proper port.

An entry without port is matched by any port.  In general, an absent
specification means any.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."