From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Trent W. Buck" Newsgroups: gmane.emacs.bugs Subject: bug#25769: 24.5; netrc-parse assumes machine/login/password all appear on one line Date: Mon, 20 Feb 2017 11:02:45 +1100 Message-ID: <20170220000243.GA1935@frey> References: <87d1ehoblp.fsf@gmail.com> <877f4okf0p.fsf@lifelogs.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1487548996 23089 195.159.176.226 (20 Feb 2017 00:03:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2017 00:03:16 +0000 (UTC) User-Agent: Mutt/1.5.23 (2014-03-12) Cc: 25769@debbugs.gnu.org To: Ted Zlatanov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 20 01:03:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfbRa-0005Co-Fp for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Feb 2017 01:03:06 +0100 Original-Received: from localhost ([::1]:35458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfbRg-0000wD-2Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Feb 2017 19:03:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfbRa-0000vw-2G for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 19:03:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfbRW-0007A5-VY for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 19:03:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfbRW-0007A1-SA for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 19:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cfbRW-0005n1-KC for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 19:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Trent W. Buck" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 00:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25769 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25769-submit@debbugs.gnu.org id=B25769.148754897722244 (code B ref 25769); Mon, 20 Feb 2017 00:03:02 +0000 Original-Received: (at 25769) by debbugs.gnu.org; 20 Feb 2017 00:02:57 +0000 Original-Received: from localhost ([127.0.0.1]:46646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfbRR-0005mi-FH for submit@debbugs.gnu.org; Sun, 19 Feb 2017 19:02:57 -0500 Original-Received: from mail-pg0-f68.google.com ([74.125.83.68]:34472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfbRP-0005mV-6f for 25769@debbugs.gnu.org; Sun, 19 Feb 2017 19:02:55 -0500 Original-Received: by mail-pg0-f68.google.com with SMTP id v184so10562551pgv.1 for <25769@debbugs.gnu.org>; Sun, 19 Feb 2017 16:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=4+iKg47LIgY2BXzh/OpYQMH/1S1n4B5xxcincWgsszI=; b=sXxSP2MQ0zMcQJSYL9J3M+QZDL5S0eyNTpmc0TQkHWMorrToyZEo8PuK0GstbQOYWL JcVHKkmixqr/s8N4y4WvDfE+z33aMn7ReGrwpPLEEeIu+mgX8M0mz1kUhe5Awp8ZfpJ2 dsl/xevDl6O0X8atMD5fknWLzJUxTbjiqmuE1DGX1dliBk/5mTPATOoopQc5j28T0gqB yhcp8/PT6WAF8kUXE11oTrtB6iouctjWEHFKf4e6Ft9h8W3xYhIhlajtR7Ubu3s9yQBq KLcdgzlvTpqgo7wvAArBRKB/5akTRCa9cJ2WGge6p8k88Tfvnh7qH9iv0BRWvFi1NZK/ amEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=4+iKg47LIgY2BXzh/OpYQMH/1S1n4B5xxcincWgsszI=; b=b2duFLHy71bBTmY4WP4b4QggVm0nsqbHqlOywg2ssKhkQK+UXZ+dh9qVGOqHwfZQzE M2xnSZKX7PYjHpmBesb3Ki6jGgmhlOORkLwrR5OPXeDXqeFBPPo+V0TQcQcJ6VNclhG1 IfjUr4XNgvUdAKUoX4oFRDgK1ZL7RFSMO2JNN0xmWFc11lGlLGJoLqabdlpxENVdFxHo ci9zdDvMM+BczyuiWBVIesPj45eJnK2x9YypVNcrAxmhwfptCi2oOWqE6hkj4N4xXWzi DxLXvlqh6bE/+UdtHq7iLa2CfD6BidyS8cvLnhRqav0R68zWjQNmLm0dCFHcUKj8QK46 DQrw== X-Gm-Message-State: AMke39nvJdv4HrTeFfgkNZLq8RzFKUOAqRTkNUavAaRc1OOvDkjWSdGUzCnn2ybC4z3mHA== X-Received: by 10.84.241.138 with SMTP id b10mr27715281pll.32.1487548969439; Sun, 19 Feb 2017 16:02:49 -0800 (PST) Original-Received: from localhost ([203.7.155.122]) by smtp.gmail.com with ESMTPSA id y21sm31240473pgh.52.2017.02.19.16.02.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 16:02:48 -0800 (PST) Content-Disposition: inline In-Reply-To: <877f4okf0p.fsf@lifelogs.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:129557 Archived-At: Ted Zlatanov wrote: > On Fri, 17 Feb 2017 12:22:10 +1100 trentbuck@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.