From unknown Sat Aug 09 13:16:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22081 <22081@debbugs.gnu.org> To: bug#22081 <22081@debbugs.gnu.org> Subject: Status: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Reply-To: bug#22081 <22081@debbugs.gnu.org> Date: Sat, 09 Aug 2025 20:16:55 +0000 retitle 22081 24.5; netrc.el fails parsing authinfo items spread over multi= ple lines reassign 22081 emacs submitter 22081 Vasilij Schneidermann severity 22081 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 03 05:20:42 2015 Received: (at submit) by debbugs.gnu.org; 3 Dec 2015 10:20:42 +0000 Received: from localhost ([127.0.0.1]:36886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4R0D-0002jf-OL for submit@debbugs.gnu.org; Thu, 03 Dec 2015 05:20:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47091) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4R0B-0002jX-S6 for submit@debbugs.gnu.org; Thu, 03 Dec 2015 05:20:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4R09-00050n-UM for submit@debbugs.gnu.org; Thu, 03 Dec 2015 05:20:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4R09-00050j-K2 for submit@debbugs.gnu.org; Thu, 03 Dec 2015 05:20:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4R04-0002BK-Oy for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 05:20:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4R02-0004zW-SF for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 05:20:32 -0500 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:35382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4R02-0004zM-Jt for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 05:20:30 -0500 Received: by qgec40 with SMTP id c40so56299375qge.2 for ; Thu, 03 Dec 2015 02:20:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=I3HqIplEbk3v9R9SLBqMuPqjTELx0Hrbd5WIX6Cv2p8=; b=vwI2BWOPFeSM7t+MSdKkTqdKpAnlej7d4QzatVE+vtU64BDdzsNEcVvJnB5G/0sJhy sLxhUpC0vYedTlp0Uacb02fz2VRsoZ+BObQYzDas7Z2FoaexqOj4Dq5kR0OD0W93jJA8 Rjrcbg/n0nLW4DTI4ll0yxLA7+UCBOgNwOfwUEVOJiziK/1wmfHINwcJUfndHaNixkeZ /4m2ZO8HnL2yBdNTED/6myUyHbNCsh9eDteVKNCxyu+/XZTyXHmRqKQQuxQIXEgnhL2j TyN3JtXsvjAhR3ZHMF/cvPOljdJLKYuebhFFUfHhNDLfRA+CdA9d2JhJArKp7PQHfxCu lodA== MIME-Version: 1.0 X-Received: by 10.140.108.8 with SMTP id i8mr10041252qgf.24.1449138029517; Thu, 03 Dec 2015 02:20:29 -0800 (PST) Received: by 10.55.42.34 with HTTP; Thu, 3 Dec 2015 02:20:29 -0800 (PST) Date: Thu, 3 Dec 2015 11:20:29 +0100 Message-ID: Subject: 24.5; netrc.el fails parsing authinfo items spread over multiple lines From: Vasilij Schneidermann To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a1139463a7ae4090525fbbd46 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a1139463a7ae4090525fbbd46 Content-Type: text/plain; charset=UTF-8 A .netrc or .authinfo file typically contains the credentials for a specific machine on a single line, but according to netrc(5) it's allowed to use newlines between the tokens as well. Using (netrc-parse) leaves such items out which is clearly an error in the implementation. In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-09-10 on foutrelis Windowing system distributor `The X.Org Foundation', version 11.0.11704000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 70945 6811) (symbols 48 17553 0) (miscs 40 35 138) (strings 32 9020 4341) (string-bytes 1 247698) (vectors 16 8908) (vector-slots 8 383094 17840) (floats 8 63 74) (intervals 56 177 0) (buffers 960 11) (heap 1024 49544 969)) --001a1139463a7ae4090525fbbd46 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
A .netrc or .authinfo file typically contains the credenti= als for a
specific machine on a single line, but according to netrc(5)<http://linux.die.net/man= /5/netrc> it's allowed to use newlines between
the tokens as = well.=C2=A0 Using (netrc-parse) leaves such items out which is
clearly a= n error in the implementation.



In GNU Emacs 24.5.1 (x86_64-u= nknown-linux-gnu, GTK+ Version 3.16.6)
=C2=A0of 2015-09-10 on foutrelis<= br>Windowing system distributor `The X.Org Foundation', version 11.0.11= 704000
System Description: Arch Linux

Configured using:
=C2=A0= `configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib
= =C2=A0--localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft
=C2=A0&#= 39;CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-st= rong
=C2=A0--param=3Dssp-buffer-size=3D4' CPPFLAGS=3D-D_FORTIFY_SOUR= CE=3D2
=C2=A0LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro'
Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 l= ocale-coding-system: utf-8-unix

Major mode: Lisp Interaction

= Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-= mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 = menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-l= ock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
= =C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0= auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient= -mark-mode: t

Recent messages:
For information about GNU Emacs an= d the GNU system, type C-h C-a.

Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-= spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-pars= e rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-= drums
mm-util help-fns mail-prsvr mail-utils time-date tooltip electric<= br>uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar=
dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode=
prog-mode register page menu-bar rfn-eshadow timer select scroll-barmouse jit-lock font-lock syntax facemenu font-core frame cham georgian
= utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanes= e hebrew greek romanian slovak czech european ethiopic indian
cyrillic c= hinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer n= advice loaddefs button faces cus-face macroexp files
text-properties ove= rlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-= print-readable backquote make-network-process
dbusbind gfilenotify dynam= ic-setting system-font-setting
font-render-setting move-toolbar gtk x-to= olkit x multi-tty emacs)

Memory information:
((conses 16 70945 68= 11)
=C2=A0(symbols 48 17553 0)
=C2=A0(miscs 40 35 138)
=C2=A0(stri= ngs 32 9020 4341)
=C2=A0(string-bytes 1 247698)
=C2=A0(vectors 16 890= 8)
=C2=A0(vector-slots 8 383094 17840)
=C2=A0(floats 8 63 74)
=C2= =A0(intervals 56 177 0)
=C2=A0(buffers 960 11)
=C2=A0(heap 1024 49544= 969))
--001a1139463a7ae4090525fbbd46-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 03 08:55:55 2015 Received: (at 22081) by debbugs.gnu.org; 3 Dec 2015 13:55:56 +0000 Received: from localhost ([127.0.0.1]:36992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4UMV-0000uZ-Aa for submit@debbugs.gnu.org; Thu, 03 Dec 2015 08:55:55 -0500 Received: from mail-qk0-f169.google.com ([209.85.220.169]:35585) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4UMS-0000uP-Pk for 22081@debbugs.gnu.org; Thu, 03 Dec 2015 08:55:53 -0500 Received: by qkao63 with SMTP id o63so29910362qka.2 for <22081@debbugs.gnu.org>; Thu, 03 Dec 2015 05:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=jYJw3whYZbJB1HajNi50cgPFefVWlek5S8Yj9lkqBQU=; b=ejsGGVg60/j8GYwP9/wAaRn1nE6yyGjmwuo/pxvWzCdCOX53NWDnXwzjSDp39yCqnP /QIXXyws1Cx/R8V0ThDDf0HNl2mhoLFVpekkf9+CkTCRpbrmURiC+p9Q7ZQZqz8K7h/w m1KEdryLUZlak1vA040pIczYpDosnYaFnzdYg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=jYJw3whYZbJB1HajNi50cgPFefVWlek5S8Yj9lkqBQU=; b=XiUe/EQvnvPg222YITPJyfvkhuULxaorNsb11c+bDB4gDcHWC+H+Mi1tH2iIpDweaS d6raAoJHeQsa77VKyJ1T2IwsrD3oBHLi4sUbPyUJyarg2g+6TK09XobkfeV+ynsiovdw YYxuOOgWpQjg3OduBuKDmZrN6INflZyknhzsCmqODGVKYZUJaBResO/CHaTilnbt9/3Y BbEiz0yVNJlYuSPicuUyvI7Ts7w3h/taCbg6AZ4jZw6YclkX62DsvzRX7ZTMzSisusTb Qf23+ggeWggfe22MKrdk+L6ag575aCyADaCH/0hVQMb5O7e5prSHYpbPA3WxXeabef0/ s5+Q== X-Gm-Message-State: ALoCoQlWU8+eLmQvoSMOeI4Bs2Vxq4jax1ipyKxlVIzSBPUJpGOFwrHpr5UIjrRg8S3LTHsCg/DX X-Received: by 10.55.71.199 with SMTP id u190mr11269584qka.3.1449150952043; Thu, 03 Dec 2015 05:55:52 -0800 (PST) Received: from flea ([98.229.60.157]) by smtp.gmail.com with ESMTPSA id 66sm3313170qhu.10.2015.12.03.05.55.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Dec 2015 05:55:51 -0800 (PST) From: Ted Zlatanov To: Vasilij Schneidermann , Lars Magne Ingebrigtsen Subject: Re: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos References: X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Thu, 03 Dec 2015 08:55:50 -0500 In-Reply-To: (Vasilij Schneidermann's message of "Thu, 3 Dec 2015 11:20:29 +0100") Message-ID: <87fuzjvdp5.fsf@lifelogs.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22081 Cc: 22081@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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? (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 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 03 13:28:56 2015 Received: (at 22081) by debbugs.gnu.org; 3 Dec 2015 18:28:56 +0000 Received: from localhost ([127.0.0.1]:37765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4Ych-0002ud-Qe for submit@debbugs.gnu.org; Thu, 03 Dec 2015 13:28:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52481) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4YcO-0002tw-8L for 22081@debbugs.gnu.org; Thu, 03 Dec 2015 13:28:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4YcN-0001S9-7J for 22081@debbugs.gnu.org; Thu, 03 Dec 2015 13:28:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4YcE-0001M7-AV; Thu, 03 Dec 2015 13:28:26 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1a4YcC-0003Ra-Nc; Thu, 03 Dec 2015 13:28:24 -0500 From: Glenn Morris To: Vasilij Schneidermann Subject: Re: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines References: <87fuzjvdp5.fsf@lifelogs.com> X-Spook: Basque Separatists Euskadi ta Askatasuna WMATA AMEMB X-Ran: q1k-TRaw%J4* (Ted Zlatanov's message of "Thu, 03 Dec 2015 08:55:50 -0500") Message-ID: <6a610f1j5j.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22081 Cc: Lars Magne Ingebrigtsen , 22081@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Ted Zlatanov wrote: > (The netrc.el `netrc-parse' code is not actively used nowadays in Emacs, Just to point out that there are even more functions for netrc parsing in Emacs, as pointed out three years ago in http://debbugs.gnu.org/12511 (of which this report is a duplicate). At the time it seemed to me that ange-ftp-parse-netrc looked like it might handle newlines. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 03 13:29:02 2015 Received: (at control) by debbugs.gnu.org; 3 Dec 2015 18:29:02 +0000 Received: from localhost ([127.0.0.1]:37769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4Yco-0002vD-9J for submit@debbugs.gnu.org; Thu, 03 Dec 2015 13:29:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52733) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4Ycm-0002uo-5g for control@debbugs.gnu.org; Thu, 03 Dec 2015 13:29:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4Ycl-0001iw-Fj for control@debbugs.gnu.org; Thu, 03 Dec 2015 13:29:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4Ycl-0001iq-D2 for control@debbugs.gnu.org; Thu, 03 Dec 2015 13:28:59 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1a4Ycl-0004sR-6F for control@debbugs.gnu.org; Thu, 03 Dec 2015 13:28:59 -0500 Subject: control message for bug 12511 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 03 Dec 2015 13:28:59 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 22081 12511 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 04 09:26:10 2015 Received: (at submit) by debbugs.gnu.org; 4 Dec 2015 14:26:10 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM autolearn=disabled version=3.3.2 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 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 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 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 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 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 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/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Date: Fri, 04 Dec 2015 14:25:00 +0000 Lines: 40 Message-ID: References: <87fuzjvdp5.fsf@lifelogs.com> Mime-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 05 18:44:02 2015 Received: (at 22081) by debbugs.gnu.org; 5 Dec 2015 23:44:03 +0000 Received: from localhost ([127.0.0.1]:40169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5MUk-0001Fo-8i for submit@debbugs.gnu.org; Sat, 05 Dec 2015 18:44:02 -0500 Received: from mail-qg0-f41.google.com ([209.85.192.41]:32886) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5MUP-0001Ex-Ts for 22081@debbugs.gnu.org; Sat, 05 Dec 2015 18:44:00 -0500 Received: by qgea14 with SMTP id a14so117992256qge.0 for <22081@debbugs.gnu.org>; Sat, 05 Dec 2015 15:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=mxFIsjIaq5Rg6B8Cfj92eU3Nwt41jnITf0WzLv8NhGo=; b=GQJSmbFBE3LnDoO4V8WiBTdO33EiBKQ4Efvni39le8AWlVqGzo2QsizaTrNkuQGndR PqIuXBu5gu+8yEmWvWdDLGTE+V0kTASR6t42OmV526ZqlcTGBy7OvY/hBrfTqLohr+vM bCvjteF5izDT9Tkm/W0VpBlHF22E7nrf3RMqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=mxFIsjIaq5Rg6B8Cfj92eU3Nwt41jnITf0WzLv8NhGo=; b=kHLAlFknZJdjixRSoqd+ZT+MyrvAlSeRDK4kmb8brHIlmkHbexLrXOuanGuryPJ8Ru zqK/DPJPYTdiOvqx6ACsNTnOfOrSimuRI1e1CaV2QNJQqxFidwjuL34shfXHsxqVIzgc j0FcntPrEtpEZz2hbenRiADwHSCoWQPOthOyS6O5tXg5oJC+wUxtHU+YkNvXMuhtN9Pa g77uvMeD08zHUycp1C33HM1RirS3ckR8w4PtT/6u3aqA0j3xr/huOGs2Nns5i750O+BI 2Qbd/RhQjI2k2bg0Zt9OhyQg9SPiC6emQsUfydtZrmXZXcYWkDvVnEar8vnL86DWx3qd LWgQ== X-Gm-Message-State: ALoCoQlhYFTlezwl+xerAGHAMv6Yxvx7DwtRFZaS1rClNf+iJSIqQyjMbg36deob6/PGMrUEchVw X-Received: by 10.140.17.213 with SMTP id 79mr28305886qgd.49.1449359021432; Sat, 05 Dec 2015 15:43:41 -0800 (PST) Received: from flea ([98.229.60.157]) by smtp.gmail.com with ESMTPSA id t47sm8577955qgt.28.2015.12.05.15.43.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Dec 2015 15:43:40 -0800 (PST) From: Ted Zlatanov To: Andy Moreton Subject: Re: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos References: <87fuzjvdp5.fsf@lifelogs.com> <87fuzjvdp5.fsf@lifelogs.com> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Sat, 05 Dec 2015 18:43:38 -0500 In-Reply-To: (Andy Moreton's message of "Fri, 04 Dec 2015 14:25:00 +0000, Thu, 03 Dec 2015 13:28:24 -0500") Message-ID: <8737vgwjf9.fsf_-_@lifelogs.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22081 Cc: Glenn Morris , 22081@debbugs.gnu.org, Vasilij Schneidermann , Lars Magne Ingebrigtsen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Fri, 04 Dec 2015 14:25:00 +0000 Andy Moreton wrote: AM> RFCs describe wire-protocols and interchange data formats, so I would AM> not expect an RFC for this. The .netrc file format is from BSD UNIX. For instance, https://tools.ietf.org/html/rfc1035 defines the format of master zone files, and https://tools.ietf.org/html/rfc4180 defines CSV files. The closest RFC in spirit is https://tools.ietf.org/html/rfc4155 which defines the mbox format but says "The mbox database format is not documented in an authoritative specification, but instead exists as a well-known output format that is anecdotally documented, or which is only authoritatively documented for a specific platform or tool." Sounds familiar? :) I'm sure we can argue for a while about the nuances of RFCs, but I hope this is enough to explain why I looked for an RFC. My more important point was that there's no standard (or library) for parsing netrc files. In particular, quoting is not specified as I mentioned. The BSD spec is ambiguous and allowing multi-line entries would not serve any practical purpose. I did a quick survey. I first remember using netrc files with ncftp. The documentation at http://cng.seas.rochester.edu/CNG/docs/man/ncftp.html shows examples of the "macdef" keyword that make it clear that it just doesn't make sense across multiple programs: machine wuarchive.wustl.edu macdef init cd /graphics/gif ls -lt (mandatory blank line to end the macro) Note that quoting is not shown, so it's up to the user to figure it out. The most used implementation is probably http://curl.haxx.se/docs/manual.html but they don't specify the syntax and from looking at their netrc.c don't support "default" or "macdef" keywords either. wget just says to consult "your system manuals" but does support "default" and "macdef" in its netrc.c so it's a bit more compliant. I hope this was useful to illustrate my original statements. AM> Support for arbitrary keywords, and omission of the machine token mean AM> that emacs will parse a .netrc file that other programs reject as AM> ill-formed. That is unhelpful: either be compatible with other programs AM> that read .netrc, or define a new file format with a different name. Do you have an actual example? Can you be more specific about what broke and how? Otherwise I think it's OK to leave things as they are. Ted From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 07 09:15:16 2015 Received: (at submit) by debbugs.gnu.org; 7 Dec 2015 14:15:16 +0000 Received: from localhost ([127.0.0.1]:41471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5wZP-0003fg-G7 for submit@debbugs.gnu.org; Mon, 07 Dec 2015 09:15:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43331) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5wZ5-0003ej-8f for submit@debbugs.gnu.org; Mon, 07 Dec 2015 09:15:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5wZ4-0000Fr-5O for submit@debbugs.gnu.org; Mon, 07 Dec 2015 09:14:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5wZ4-0000Fn-2S for submit@debbugs.gnu.org; Mon, 07 Dec 2015 09:14:54 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5wZ0-0007Wl-1z for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2015 09:14:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5wYp-0000Dd-N3 for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2015 09:14:43 -0500 Received: from plane.gmane.org ([80.91.229.3]:34243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5wYp-0000DV-GD for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2015 09:14:39 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a5wYl-0002hP-Dz for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2015 15:14:35 +0100 Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Dec 2015 15:14:35 +0100 Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Dec 2015 15:14:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Date: Mon, 07 Dec 2015 14:14:13 +0000 Lines: 24 Message-ID: <86d1uiqrbe.fsf@gmail.com> References: <87fuzjvdp5.fsf@lifelogs.com> <87fuzjvdp5.fsf@lifelogs.com> <8737vgwjf9.fsf_-_@lifelogs.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) Cancel-Lock: sha1:WytRl4tt6EgaNujmyz/xFA0NbcM= 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) On Sat 05 Dec 2015, Ted Zlatanov wrote: > On Fri, 04 Dec 2015 14:25:00 +0000 Andy Moreton wrote: > My more important point was that there's no standard (or library) for > parsing netrc files. In particular, quoting is not specified as I > mentioned. The BSD spec is ambiguous and allowing multi-line entries > would not serve any practical purpose. The spec clearly defines that tokens are separated with SPACE TAB or NEWLINE, which seems unambiguous to me. Multi-line entries are an inherent part of the file format, and are useful for readable layout. For an example, see: http://www.catb.org/esr/writings/taoup/html/ch10s03.html It's perfectly ok to parse an extended version of the file format which allows for quoting and escaping mechanisms, but not if it is done is a way which is incompatible with reasonable and well formed existing files. Disallowing NEWLINE as a token separator means you are not parsing an extension of the existing format, but something incompatible with it. That's fine as it offers useful features, but it should use a different file name to make it clear that it is not the same format. AndyM From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 07 13:16:05 2015 Received: (at 22081) by debbugs.gnu.org; 7 Dec 2015 18:16:05 +0000 Received: from localhost ([127.0.0.1]:41996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a60KS-00073h-Mf for submit@debbugs.gnu.org; Mon, 07 Dec 2015 13:16:05 -0500 Received: from mail-qk0-f175.google.com ([209.85.220.175]:32894) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a60KQ-00070U-0T for 22081@debbugs.gnu.org; Mon, 07 Dec 2015 13:16:02 -0500 Received: by qkdb5 with SMTP id b5so34633677qkd.0 for <22081@debbugs.gnu.org>; Mon, 07 Dec 2015 10:16:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=bNAfpAviQrSwnsuYgXtmuqnRuoD8R+Mf5UvXYpQjm18=; b=AboquTuJvF07OfFH9n57Znw16Ea4U6zLRw18DFK82vxABKHnT6jixXAcubNNw2A39l Wzzu6FlR7W2KhYqqvMutbin9LNtZt/qjxNaCfVI+EwQr5YwqEnuY8g1YX+brkB0iBD2l WNOIUBEYoi5f26O+7WfKxCbu0bNjCSh1uBTqA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=bNAfpAviQrSwnsuYgXtmuqnRuoD8R+Mf5UvXYpQjm18=; b=JcjqJAInrwOHpzWaiMtyDC2CkHU9G22kg7Yldkokp91EbL6BGnFtEpvS+Zn+cf6w6k xiSdSIlfjs9+QF3pu5SOkSZggJPkV9evAqwN9DTu+v4SjMnBU4a30PNPYaohW6buoK/V xdL55/Mdk0nO/aIC0EorfQZMFKDxbEAPtaZyjMP45G/tPnKLvzV1Up9pB02jsnKfDLZN 76pynikuJ0EsFqoc1VYuKxyeS/TiDTSj1XAEwh4VSw6B6eADcr/GYs96ZxPFtvHKUjxp hP4kketbGRzovAxSnNlEB8LCptNZk7olsMNOYot7ejGQypr708p8i0ItEXSY/ZCTczHl 3MwA== X-Gm-Message-State: ALoCoQmPDScJ57VxCBLQxAw1u3AmiTSVXkquCSLP5erIKVljylW3KCDqFWtE3wSN+Csll01Q+9R6 X-Received: by 10.55.15.228 with SMTP id 97mr26788083qkp.98.1449512161599; Mon, 07 Dec 2015 10:16:01 -0800 (PST) Received: from flea ([98.229.60.157]) by smtp.gmail.com with ESMTPSA id s83sm12026094qhc.28.2015.12.07.10.16.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Dec 2015 10:16:00 -0800 (PST) From: Ted Zlatanov To: Andy Moreton Subject: Re: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos References: <87fuzjvdp5.fsf@lifelogs.com> <87fuzjvdp5.fsf@lifelogs.com> <8737vgwjf9.fsf_-_@lifelogs.com> <86d1uiqrbe.fsf@gmail.com> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Mon, 07 Dec 2015 13:15:59 -0500 In-Reply-To: <86d1uiqrbe.fsf@gmail.com> (Andy Moreton's message of "Mon, 07 Dec 2015 14:14:13 +0000") Message-ID: <87twnuunts.fsf@lifelogs.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22081 Cc: 22081@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, 07 Dec 2015 14:14:13 +0000 Andy Moreton wrote: AM> On Sat 05 Dec 2015, Ted Zlatanov wrote: >> On Fri, 04 Dec 2015 14:25:00 +0000 Andy Moreton wrote: >> My more important point was that there's no standard (or library) for >> parsing netrc files. In particular, quoting is not specified as I >> mentioned. The BSD spec is ambiguous and allowing multi-line entries >> would not serve any practical purpose. AM> The spec clearly defines that tokens are separated with SPACE TAB or AM> NEWLINE, which seems unambiguous to me. Without a quoting standard, it's not clear whether strings inside quotes can be multiline and whether the newline itself can be escaped. AM> Disallowing NEWLINE as a token separator means you are not parsing an AM> extension of the existing format, but something incompatible with it. AM> That's fine as it offers useful features, but it should use a different AM> file name to make it clear that it is not the same format. Fortunately `auth-sources' defaults to ~/.authinfo and ~/.authinfo.gpg before ~/.netrc right now. Ted From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 08 04:40:34 2015 Received: (at submit) by debbugs.gnu.org; 8 Dec 2015 09:40:34 +0000 Received: from localhost ([127.0.0.1]:42325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6El7-0003Hl-3R for submit@debbugs.gnu.org; Tue, 08 Dec 2015 04:40:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52430) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6Ekm-0003Gy-Kr for submit@debbugs.gnu.org; Tue, 08 Dec 2015 04:40:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Ekl-0006lq-GB for submit@debbugs.gnu.org; Tue, 08 Dec 2015 04:40:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Ekl-0006lm-Dn for submit@debbugs.gnu.org; Tue, 08 Dec 2015 04:40:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Ekk-0000k9-DA for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:40:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Ekh-0006kt-79 for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:40:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:58858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Ekh-0006iv-0i for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:40:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a6Eke-0000oV-Em for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 10:40:04 +0100 Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 10:40:04 +0100 Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 10:40:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Date: Tue, 08 Dec 2015 09:35:22 +0000 Lines: 31 Message-ID: <86io492sh1.fsf@gmail.com> References: <87fuzjvdp5.fsf@lifelogs.com> <87fuzjvdp5.fsf@lifelogs.com> <8737vgwjf9.fsf_-_@lifelogs.com> <86d1uiqrbe.fsf@gmail.com> <87twnuunts.fsf@lifelogs.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) Cancel-Lock: sha1:cs4h1T1YzydE0PoORegoZYpU5MY= 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) On Mon 07 Dec 2015, Ted Zlatanov wrote: > On Mon, 07 Dec 2015 14:14:13 +0000 Andy Moreton wrote: > > AM> On Sat 05 Dec 2015, Ted Zlatanov wrote: >>> On Fri, 04 Dec 2015 14:25:00 +0000 Andy Moreton wrote: >>> My more important point was that there's no standard (or library) for >>> parsing netrc files. In particular, quoting is not specified as I >>> mentioned. The BSD spec is ambiguous and allowing multi-line entries >>> would not serve any practical purpose. > > AM> The spec clearly defines that tokens are separated with SPACE TAB or > AM> NEWLINE, which seems unambiguous to me. > > Without a quoting standard, it's not clear whether strings inside quotes > can be multiline and whether the newline itself can be escaped. The original spec is archaic - there is no quoting standard, only tokens separated by whitespace. As such, a quote is simply another character. > AM> Disallowing NEWLINE as a token separator means you are not parsing an > AM> extension of the existing format, but something incompatible with it. > AM> That's fine as it offers useful features, but it should use a different > AM> file name to make it clear that it is not the same format. > > Fortunately `auth-sources' defaults to ~/.authinfo and ~/.authinfo.gpg > before ~/.netrc right now. Indeed. AndyM From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 08 09:06:59 2015 Received: (at 22081-done) by debbugs.gnu.org; 8 Dec 2015 14:06:59 +0000 Received: from localhost ([127.0.0.1]:42496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6Iuw-0003Ct-Gu for submit@debbugs.gnu.org; Tue, 08 Dec 2015 09:06:58 -0500 Received: from mail-qg0-f42.google.com ([209.85.192.42]:34238) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6Iub-0003CQ-Md for 22081-done@debbugs.gnu.org; Tue, 08 Dec 2015 09:06:56 -0500 Received: by qgeb1 with SMTP id b1so16969331qge.1 for <22081-done@debbugs.gnu.org>; Tue, 08 Dec 2015 06:06:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=gs8G0wc7r0gTAjOgGDybM6MfjtmqSDGuFcKXLt8zH5I=; b=g24Rl22NEsBLt+BJ+xKpAnrV5UFV47JUOHZRFT1JxepnIcb/kI0+6/Gy07fSNKNSvl HQIzQUdaZeREcH8ygGqXefqraRb7KtE8oI9ktJHIhbBA0+qqS0pXqotY5B0xJnCv/Oaq UW9aPJQmqYzpBI70v0rE1CpVyJFWOzIH9/aL4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=gs8G0wc7r0gTAjOgGDybM6MfjtmqSDGuFcKXLt8zH5I=; b=gyEDyj6xFDZY8UL6EGWdwVgVN4twz197dj9Gv+pkLUscT2WVeRKy4NhJsXUS01sW9n DQJfuM9skMJDi8f6Fl4oTt63wcjIeK27ESg+ev/v1/IOIwvGzzEBGy/u02e7MSV4wWQ8 YpAkwNs5rEvZjsWpWqc/d11wEpNTzg+QAaWTCap8lcsjBhpItBZnDK4cnEUirth0QK4M QrqCcMZ13C39/z4WjCPSzRDa/VlGmXMCnCL/LDy2EAuGAhSXUzFcujgmYHAl246gPMQq N4kJoL6DyzHhljsrVz9xi0ky12in9sc9PMRgobmgGaWMqe4ey90MZKrnNt/NUvBy9zmL 31nA== X-Gm-Message-State: ALoCoQlv3j+T8pMtZCV5nJfrCHjDZlKT6LryXNV0FyF3kN0rj1XTzTjq7k02RcLUz10yqta8fxHzQBu/lF1ry7VkR8KRSzIJ6Q== X-Received: by 10.140.253.66 with SMTP id y63mr400629qhc.39.1449583594816; Tue, 08 Dec 2015 06:06:34 -0800 (PST) Received: from flea ([98.229.60.157]) by smtp.gmail.com with ESMTPSA id k9sm1562469qgd.21.2015.12.08.06.06.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Dec 2015 06:06:34 -0800 (PST) From: Ted Zlatanov To: Andy Moreton Subject: Re: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos References: <87fuzjvdp5.fsf@lifelogs.com> <87fuzjvdp5.fsf@lifelogs.com> <8737vgwjf9.fsf_-_@lifelogs.com> <86d1uiqrbe.fsf@gmail.com> <87twnuunts.fsf@lifelogs.com> <86io492sh1.fsf@gmail.com> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Tue, 08 Dec 2015 09:06:33 -0500 In-Reply-To: <86io492sh1.fsf@gmail.com> (Andy Moreton's message of "Tue, 08 Dec 2015 09:35:22 +0000") Message-ID: <87oae1uj9y.fsf@lifelogs.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22081-done Cc: 22081-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Tue, 08 Dec 2015 09:35:22 +0000 Andy Moreton wrote: AM> On Mon 07 Dec 2015, Ted Zlatanov wrote: >> Without a quoting standard, it's not clear whether strings inside quotes >> can be multiline and whether the newline itself can be escaped. AM> The original spec is archaic - there is no quoting standard, only tokens AM> separated by whitespace. As such, a quote is simply another character. Right, and therefore we can't support the original spec as long as we also support the more important single-quoting and double-quoting of strings. I'm closing this without prejudice because I think we've stated our positions clearly and it's not a bug, but if you or anyone else want to propose a patch that can support multiline or the other keywords without breaking the current functionality, we can reopen. I would also welcome patches to remove the netrc.el usage. Thanks Ted From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 12:57:17 2015 Received: (at 22081) by debbugs.gnu.org; 14 Dec 2015 17:57:17 +0000 Received: from localhost ([127.0.0.1]:51829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a8XN7-0006KB-FR for submit@debbugs.gnu.org; Mon, 14 Dec 2015 12:57:17 -0500 Received: from bouvier.getmail.no ([84.210.184.8]:37898) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a8XN5-0006Jw-KB for 22081@debbugs.gnu.org; Mon, 14 Dec 2015 12:57:16 -0500 Received: from localhost (localhost [127.0.0.1]) by bouvier.getmail.no (Postfix) with ESMTP id 2C3474C687; Mon, 14 Dec 2015 18:57:09 +0100 (CET) Received: from bouvier.getmail.no ([127.0.0.1]) by localhost (bouvier.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id K5h2bwHolT75; Mon, 14 Dec 2015 18:57:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by bouvier.getmail.no (Postfix) with ESMTP id B8F204CBA8; Mon, 14 Dec 2015 18:57:08 +0100 (CET) X-Virus-Scanned: amavisd-new at bouvier.get.c.bitbit.net Received: from bouvier.getmail.no ([127.0.0.1]) by localhost (bouvier.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Mq6Qhpac0kuW; Mon, 14 Dec 2015 18:57:08 +0100 (CET) Received: from stories (cm-84.215.1.64.getinternet.no [84.215.1.64]) by bouvier.getmail.no (Postfix) with ESMTPS id 8E9884C687; Mon, 14 Dec 2015 18:57:08 +0100 (CET) From: Lars Magne Ingebrigtsen To: Vasilij Schneidermann Subject: Re: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines References: <87fuzjvdp5.fsf@lifelogs.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUKAQlvZXI1MjwjGicS CRUcEh4pJC5sydyQAAACZklEQVQ4jV2Uy3baMBCGdYrbNRIJ61oG7ckgrSlI7Ikk1rUd5v0fof+I pAkRYDj+PJd/LqhaqeZaSwozT/bzqFizp+pLwlcQMtnGVYmZKJO/g743QEaAL1XADdfAnngOLjQL 7zPNtXoiL9GI2bE4VBXRCZed/nocQKxJwOUBSFZIC67o8qT1pcc9o/VCwN0VNdBr0+u1fv6lmRvw CCzAGCM2Tws9t+DXOcy0W6r/Z6FZQA5zYLqYB4AYGbLDXP88APsJLstvYEaFoLbF+PGuwgiwrlWZ R4DuLd/ylcKpgfczPrrqlZvEhr+BXqtWTea56UjoUa9tRhxx5RwRjctuYbXerGI3rt6BtSTK/6jO 6s3pcLTrBqTDzACjUhdtBnuyRsCECBPaOi63Sv3U8MamAX4xxhLx+PQb0UXeB5jC6DAH4/qvAOPN 7QPQ9JzZ9itkG7W5DeW5gWFy0wpz0a9hcEbwV9poUb6laedEl5T9qFf7c9q0Ydheh7EBLcVI0lq0 vVU3G26AURj5JWWfZEp2bpbg3+fq1fZ2iOFhBayBxVC2iffJ14gtwcmEqWEMg4+beDxFnIR3I9eZ JtmPWznHvZAT1wnjFwIM7uB4WLzFeB7SBlUj7JwTgHm/Qhr6Va7VfdnBQ8r7g1ISoEQLDUgcOQKo DpJjF1OJxWXPHPCyqsPTCp8uxlILeulkkjHUcl81V+LM+vriHCy+gkMHGQSdMv3TfcIOUVyJvgx/ ie4WYiN3EVuUp5pykHSbdzm4VQsKhr0Iku49apWn8ScgytEX6QecSoEwQVJ6jBnWhds6Y5nDQzda Xf4BmGPamLpY2H0AAAAASUVORK5CYII= Date: Mon, 14 Dec 2015 18:57:08 +0100 In-Reply-To: <87fuzjvdp5.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 03 Dec 2015 08:55:50 -0500") Message-ID: User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22081 Cc: 22081@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Ted Zlatanov writes: > (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.) Let's see... Geez, that's some convoluted code. I think what it's meant to do is to allow the user to define `nntp-authinfo-file' and allow that to override the other Emacs authinfo choices. I think it would be nice to not break people's setups, but I think it would be clearer just to do something like (let ((auth-sources (cons nntp-authinfo-file auth-sources))) ...) before calling auth-source, and delete the explicit calls to netrc completely. And then you could move netrc.el to obsolete/. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 09 13:16:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 12 Jan 2016 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator