GNU bug report logs - #25769
24.5; netrc-parse assumes machine/login/password all appear on one line

Previous Next

Package: emacs;

Reported by: trentbuck <at> gmail.com (Trent W. Buck)

Date: Fri, 17 Feb 2017 01:23:01 UTC

Severity: normal

Found in version 24.5

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 25769 <at> debbugs.gnu.org (full text, mbox):

From: "Trent W. Buck" <trentbuck <at> gmail.com>
To: Ted Zlatanov <tzz <at> lifelogs.com>
Cc: 25769 <at> debbugs.gnu.org
Subject: Re: bug#25769: 24.5; netrc-parse assumes machine/login/password all
 appear on one line
Date: Mon, 20 Feb 2017 11:02:45 +1100
Ted Zlatanov wrote:
> On Fri, 17 Feb 2017 12:22:10 +1100 trentbuck <at> gmail.com (Trent W. Buck) wrote:
>
> TWB> ...but now I'm finally annoyed enough to actually report this and get a formal WONTFIX.
>
> Please see
> https://lists.gnu.org/archive/html/bug-gnu-emacs/2015-12/msg00266.html
> (the whole discussion is pertinent)

Yes; I see the problem there.
This is a duplicate of that bug report.

> For your bug report specifically, maybe you mean
> `auth-source-netrc-parse'? If you do mean `netrc-parse', please note
> that it's only used in one place in the whole Emacs core AFAIK.

Ah, I didn't realize netrc.el had been replaced by auth-source.el.

As a simple test I tried feeding it my actual ~/.netrc β€” some entries
are newline delimited, and some are all-on-one-line β€” but it didn't
seem to find ANY of them:

    (auth-source-netrc-parse :file "~/.netrc") β‡’ nil

But if I open .netrc manually, go to point-min, and call

    (auth-source-netrc-parse-entries #'identity 999)

…it returns a correctly parsed list, handling comments & newlines between fields perfectly.

I'm a bit puzzled which bit of code is failing to handle newlines.
Am I missing something obvious?

(I haven't read auth.info yet because I've gotta go get it specially
due to the DFSG/GFDL dispute.)

> I would rather not patch or support netrc.el--better to remove it altogether.

Understood, and agreed.




This bug report was last modified 3 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.