]> sjero.net Git - wget/commitdiff
[svn] Reset the QUOTE flag after the closing quote.
authorhniksic <devnull@localhost>
Sun, 26 Oct 2003 00:03:38 +0000 (17:03 -0700)
committerhniksic <devnull@localhost>
Sun, 26 Oct 2003 00:03:38 +0000 (17:03 -0700)
src/ChangeLog
src/netrc.c

index f7e0e94fb4bc64e12068b0e92e80d2d9cf582b1a..97eca1fa419c5ace2b1671cf20757b003910fbc7 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-26  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * netrc.c (parse_netrc): Reset the QUOTE flag after the closing
+       quote.
+
 2003-10-25  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * url.c (is_valid_ipv6_address): Reformat to GNU coding style.
index 91a1d80e6608894707cdcad1fcc559fb8a47c06c..1a16b0a87ba5e3fe388e91ce1f64d56b9aac51f1 100644 (file)
@@ -328,9 +328,13 @@ parse_netrc (const char *path)
            p ++;
          }
 
-         /* if field was quoted, squash the trailing quotation mark */
+         /* If field was quoted, squash the trailing quotation mark
+            and reset quote flag.  */
          if (quote)
-           shift_left(p);
+           {
+             shift_left (p);
+             quote = 0;
+           }
 
          /* Null-terminate the token, if it isn't already.  */
          if (*p)