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


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: trentbuck <at> gmail.com (Trent W. Buck)
Cc: 25769 <at> debbugs.gnu.org
Subject: bug#25769: 24.5; netrc-parse assumes machine/login/password all appear on one line
Date: Sat, 14 Aug 2021 16:11:01 +0200
trentbuck <at> gmail.com (Trent W. Buck) writes:

> With a file /tmp/test.netrc like this:
>
>     # -*- conf-space-keywords: "machine\\|login\\|password" -*-
>     machine XM login XL password XP
>
>     machine YM
>       login YL
>       password YP
>
> The first record is parsed correctly; the second is not:
>
>     *** Welcome to IELM ***  Type (describe-mode) for help.
>     ELISP> (require 'netrc)
>     netrc
>     ELISP> (netrc-parse "/tmp/test.netrc")
>     ((("machine" . "XM")
>       ("login" . "XL")
>       ("password" . "XP"))
>      (("machine" . "YM"))
>      (("login" . "YL"))
>      (("password" . "YP")))

This has apparently been fixed at some point after this was reported,
but I added your test case to Emacs 28, and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

Previous Next


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