Hello, upgrading to 1.9 I found an old unapplied patch to fix a parsing problem with .netrc.
"The cause of this behavior is wget's .netrc parser failing to reset
it's
quote flag after seeing a quote at the end of a token. That caused problems
for lines with unquoted tokens following quoted ones."
This is the patch:
--- wget-1.8.1/src/netrc.c Fri Nov 30 03:33:22 2001
+++ wget-fixed/src/netrc.c Sun Feb 17 17:12:20 2002
@@ -313,9 +313,12 @@
p ++;
}
- /* if field was quoted, squash the trailing quotation mark */
- if (quote)
+ /* if field was quoted, squash the trailing quotation mark
+ and reset quote flag */
+ if (quote) {
shift_left(p);
+ quote = 0;
+ }
/* Null-terminate the token, if it isn't already. */
if (*p)
this is the bugreport:
--8<--
I have a ~/.netrc with the following content:
machine www.somewhere.com login "foo" password bar
running wget always spams the following to my console:
wget: /home/bilbo/.netrc:1: unknown token "password bar
"
--8<--
--
Noèl Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
