From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Date: Fri, 04 Dec 2015 14:25:00 +0000 Message-ID: References: <87fuzjvdp5.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449239270 2582 80.91.229.3 (4 Dec 2015 14:27:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2015 14:27:50 +0000 (UTC) To: 22081@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 04 15:27:38 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a4rKH-0001mB-JB for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 15:27:09 +0100 Original-Received: from localhost ([::1]:41275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4rKG-0004Nu-Un for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 09:27:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4rKD-0004Np-Vg for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 09:27:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4rKB-0004Hu-7H for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 09:27:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4rKB-0004Hm-4p for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 09:27:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4rKA-0006Lv-Oy for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 09:27:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Dec 2015 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22081 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144923917024357 (code B ref -1); Fri, 04 Dec 2015 14:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Dec 2015 14:26:10 +0000 Original-Received: from localhost ([127.0.0.1]:38470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4rJJ-0006Km-CN for submit@debbugs.gnu.org; Fri, 04 Dec 2015 09:26:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59469) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4rIx-0006KC-Pa for submit@debbugs.gnu.org; Fri, 04 Dec 2015 09:26:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4rIw-0003yo-I0 for submit@debbugs.gnu.org; Fri, 04 Dec 2015 09:25:47 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4rIw-0003yk-FY for submit@debbugs.gnu.org; Fri, 04 Dec 2015 09:25:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4rIv-0003IC-Ak for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 09:25:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4rIs-0003xw-KK for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 09:25:45 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4rIs-0003xl-5f for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 09:25:42 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a4rIL-0007Ot-TP for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 15:25:09 +0100 Original-Received: from uk.solarflare.com ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Dec 2015 15:25:09 +0100 Original-Received: from andrewjmoreton by uk.solarflare.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Dec 2015 15:25:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: uk.solarflare.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) Cancel-Lock: sha1:PAQfur7ygEt1elxCRD4mgpCj04s= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109583 Archived-At: On Thu 03 Dec 2015, Ted Zlatanov wrote: > On Thu, 3 Dec 2015 11:20:29 +0100 Vasilij Schneidermann 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> 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? RFCs describe wire-protocols and interchange data formats, so I would not expect an RFC for this. The .netrc file format is from BSD UNIX. Support for arbitrary keywords, and omission of the machine token mean that emacs will parse a .netrc file that other programs reject as ill-formed. That is unhelpful: either be compatible with other programs that read .netrc, or define a new file format with a different name. AndyM