[EMAIL PROTECTED] (Adam Sjøgren) writes:

> Whenever I run wget 1.6, I get a bunch of lines complaining about my
> ~/.netrc:

Yup, that's a 1.6 bug.

It's fixed in both CVS branches.  To Nicolas: I'm not sure how you're
making your releases, but the problem reported by Adam is fixed by the
following patch:

Index: netrc.c
===================================================================
RCS file: /pack/anoncvs/wget/src/netrc.c,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -r1.2 -r1.2.2.1
--- netrc.c     2000/03/02 14:16:12     1.2
+++ netrc.c     2001/04/01 23:31:07     1.2.2.1
@@ -287,8 +287,9 @@
          while (*p && ISSPACE (*p))
            p ++;
 
-         /* Discard end-of-line comments.  */
-         if (*p == '#')
+         /* Discard end-of-line comments; also, stop processing if
+            the above `while' merely skipped trailing whitespace.  */
+         if (*p == '#' || !*p)
            break;
 
          /* If the token starts with quotation mark, note this fact,

Reply via email to