From: Ted Zlatanov <tzz@lifelogs.com>
To: Vasilij Schneidermann <v.schneidermann@gmail.com>,
Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: 22081@debbugs.gnu.org
Subject: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines
Date: Thu, 03 Dec 2015 08:55:50 -0500 [thread overview]
Message-ID: <87fuzjvdp5.fsf@lifelogs.com> (raw)
In-Reply-To: <CAPGgwWR-gr-8pXi=APR5U4FBNFAvd2EJEo4miTCzn8Qy1_L56g@mail.gmail.com> (Vasilij Schneidermann's message of "Thu, 3 Dec 2015 11:20:29 +0100")
On Thu, 3 Dec 2015 11:20:29 +0100 Vasilij Schneidermann <v.schneidermann@gmail.com> wrote:
VS> A .netrc or .authinfo file typically contains the credentials for a
VS> specific machine on a single line, but according to netrc(5)
VS> <http://linux.die.net/man/5/netrc> it's allowed to use newlines between
VS> the tokens as well. Using (netrc-parse) leaves such items out which is
VS> clearly an error in the implementation.
The Emacs implementation in auth-source.el `auth-source-netrc-parse',
which is used by default for netrc files today, is not a
reimplementation of that semi-standard:
* there is no RFC for the netrc format as far as I know
* Emacs supports both single and double quotes around strings (note the
man page doesn't indicate how tokens are quoted!)
* macdef and default are not explicitly supported
* arbitrary keywords are supported
* the "machine" keyword is not required for an entry
The last two, especially, make it hard to support multi-line entries.
Since there is no RFC to my knowledge and no functional need to spread
entries across multiple lines, I'd like to close this as a WONTFIX. Any
opinions?
(The netrc.el `netrc-parse' code is not actively used nowadays in Emacs,
as far as I know, but hasn't been removed due to my laziness. I see a
single reference to it in gnus/nntp.el. It has some deficiencies that
were improved in `auth-source-netrc-parse', for instance supporting
single-quoted strings. Any objections to removing it? CC to Lars since
he wrote it originally.)
Ted
next prev parent reply other threads:[~2015-12-03 13:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-03 10:20 bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Vasilij Schneidermann
2015-12-03 13:55 ` Ted Zlatanov [this message]
2015-12-03 18:28 ` Glenn Morris
2015-12-04 14:25 ` Andy Moreton
2015-12-05 23:43 ` Ted Zlatanov
2015-12-07 14:14 ` Andy Moreton
2015-12-07 18:15 ` Ted Zlatanov
2015-12-08 9:35 ` Andy Moreton
2015-12-08 14:06 ` Ted Zlatanov
2015-12-14 17:57 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fuzjvdp5.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=22081@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=v.schneidermann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).