]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/gnus/auth-source.el (auth-source-netrc-parse-one): Allow empty strings in authin...
authorDavid Kastrup <dak@gnu.org>
Sat, 6 Jul 2013 12:49:38 +0000 (12:49 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sat, 6 Jul 2013 12:49:38 +0000 (12:49 +0000)
lisp/gnus/ChangeLog
lisp/gnus/auth-source.el

index 63c63af33993881a9ea816e5b9bc665f9a88e3e3..34eb28f0965e25fa053bf867717f785f581d8872 100644 (file)
@@ -1,3 +1,9 @@
+2013-07-05  David Kastrup  <dak@gnu.org>
+
+       * 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  <yamaoka@jpl.org>
 
        * gnus-sum.el (gnus-summary-from-or-to-or-newsgroups):
index 8cef741cda2396ea5874eba5a8e576a8f3281e91..54429b5cfda50cf3d219b1a055f8251314eff370 100644 (file)
@@ -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)