Hello,

http://bugs.debian.org/134765
--8<--
Package: wget
Version: 1.8.1-0.2

I have a ~/.wgetrc that contains the line
        login = anonymous
and a .netrc that contains, among other things,
        default login raj password xxx

The man page says that wget reads .wgetrc, but actually it also reads
.netrc (verified with strace). If I run it to download from an FTP
host not in .netrc, I get (with debug=on):



> wget ftp://ftp.scyld.com/pub/network/3c59x.c
DEBUG output created by Wget 1.8.1 on linux-gnu.

--16:26:29--  ftp://ftp.scyld.com/pub/network/3c59x.c
           => `3c59x.c'
Resolving ftp.scyld.com... done.
Caching ftp.scyld.com => 216.254.93.179
Connecting to ftp.scyld.com[216.254.93.179]:21... connected.
Created socket 3.
Releasing 0x8072e40 (new refcount 1).
Logging in as raj ... 220 Welcome to the Scyld FTP service

--> USER raj

530 This FTP server is anonymous only.

The server refuses login.
Closing fd 3
Retrying.

etc etc.

Putting anonymous@ in the URL works. Suggest mentioning .netrc
overriding .wgetrc in the man page. I think that in the long run it is
better for .wgetrc to override .netrc. This happens with the stable
version, 1.5.x, as well as 1.8.1 which I compiled up from unstable.
--8<--

Thank you.

-- 
        Nočl Köthe

Reply via email to