From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: [PATCH] * auth-source.el (auth-source-netrc-parse-one): Allow empty strings in authinfo file again (important for blank passwords). This had been broken with 2013-06-15 change. Date: Fri, 5 Jul 2013 12:18:51 +0200 Message-ID: <1373019531-13054-1-git-send-email-dak@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1373019578 17980 80.91.229.3 (5 Jul 2013 10:19:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 10:19:38 +0000 (UTC) Cc: David Kastrup To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 05 12:19:40 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Uv374-0007Vp-8d for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 12:19:38 +0200 Original-Received: from localhost ([::1]:32864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv373-0000vT-Jq for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 06:19:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv36q-0000hl-M5 for emacs-devel@gnu.org; Fri, 05 Jul 2013 06:19:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv36p-0002jg-3J for emacs-devel@gnu.org; Fri, 05 Jul 2013 06:19:24 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv36p-0002jb-0v for emacs-devel@gnu.org; Fri, 05 Jul 2013 06:19:23 -0400 Original-Received: from localhost ([127.0.0.1]:58592 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv36o-00031v-BC; Fri, 05 Jul 2013 06:19:22 -0400 Original-Received: by lola (Postfix, from userid 1000) id 75756209FBD; Fri, 5 Jul 2013 12:19:09 +0200 (CEST) X-Mailer: git-send-email 1.8.1.2 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161571 Archived-At: --- lisp/gnus/ChangeLog | 6 ++++++ lisp/gnus/auth-source.el | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 2b1e1d8..c766488 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,9 @@ +2013-07-05 David Kastrup + + * auth-source.el (auth-source-netrc-parse-one): Allow empty strings in + authinfo file again (important for blank passwords). This had been + broken with 2013-06-15 change. + 2013-07-03 Katsumi Yamaoka * gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): diff --git a/lisp/gnus/auth-source.el b/lisp/gnus/auth-source.el index 8cef741..54429b5 100644 --- a/lisp/gnus/auth-source.el +++ b/lisp/gnus/auth-source.el @@ -1048,8 +1048,8 @@ Note that the MAX parameter is used so we can exit the parse early." "Read one thing from the current buffer." (auth-source-netrc-parse-next-interesting) - (when (or (looking-at "'\\([^']+\\)'") - (looking-at "\"\\([^\"]+\\)\"") + (when (or (looking-at "'\\([^']*\\)'") + (looking-at "\"\\([^\"]*\\)\"") (looking-at "\\([^ \t\n]+\\)")) (forward-char (length (match-string 0))) (auth-source-netrc-parse-next-interesting) -- 1.8.1.2