"Nelson H. F. Beebe" <[EMAIL PROTECTED]> writes:

> I've just installed wget-1.6 on all our local UNIX architectures
> (about 8 flavors), and got this new warning:
> 
> wget: /u/sy/beebe/.netrc:46: unknown token ""
> 
> The line in question is blank.
> 
> Software that doesn't allow blanks and comments in files is
> decidedly user unfriendly!

Indeed.  Thanks for the report.

Does this patch fix the problem?

Index: src/netrc.c
===================================================================
RCS file: /pack/anoncvs/wget/src/netrc.c,v
retrieving revision 1.6
diff -u -r1.6 netrc.c
--- src/netrc.c 2001/03/30 22:36:59     1.6
+++ src/netrc.c 2001/04/01 23:23:05
@@ -295,7 +288,7 @@
            p ++;
 
          /* Discard end-of-line comments.  */
-         if (*p == '#')
+         if (*p == '#' || !*p)
            break;
 
          /* If the token starts with quotation mark, note this fact,

Reply via email to