Re: ftp,proxy and .netrc problem

2001-06-15 Thread Richard Travett

Hi,

Hrvoje Niksic wrote:

[snip]

 Sorry for not responding -- I was a bit busy after the release.
 Of course, it was perfectly fine to include the logs, they were
 certainly not the reason for ignoring the mail!

Thats okay don't worry.

 Rick wget ftp:[EMAIL PROTECTED]/dl/a.a
  
  and I have a .netrc, would you expect wgetrc to look for the remote
  user / password (i.e. the password for rick at a.machine.com) in
  the .netrc file?
  
  I would but it doesn't - it searches the .netrc file for an entry
  associated with my proxy machine!?
 
 This is a bug.  Does this patch fix the problem?

I applied the patch over lunchtime and gave it a quick try and it seems
to be working. I'll try a few more tests when I get some more time.

Thanks for the response. I'm glad it was a bug that could be easily
fixed rather than me not understanding how things were supposed to
work! :-)

Regards,
-- 
Richard Travett,Email: [EMAIL PROTECTED] 
  May all your communications be free from electro-magnetic disturbances,
and your days be free from temporal distortions in the space time continuum
 This email does not represent a formal communication from Simoco.

_
This message has been checked for all known viruses by Star Internet 
delivered through the MessageLabs Virus Control Centre.



Re: ftp,proxy and .netrc problem

2001-06-14 Thread Hrvoje Niksic

Richard Travett [EMAIL PROTECTED] writes:

 I'm going to try this again since last time I got only one response
 which unfortunately, although helpful, didn't solve the problem. :-(
 
 I won't include all the logs again (Maybe the length put people off
 reading it!) but I'll just ask the question:

Sorry for not responding -- I was a bit busy after the release.
Of course, it was perfectly fine to include the logs, they were
certainly not the reason for ignoring the mail!

Rick wget ftp:[EMAIL PROTECTED]/dl/a.a
 
 and I have a .netrc, would you expect wgetrc to look for the remote
 user / password (i.e. the password for rick at a.machine.com) in
 the .netrc file?
 
 I would but it doesn't - it searches the .netrc file for an entry
 associated with my proxy machine!?

This is a bug.  Does this patch fix the problem?

Index: http.c
===
RCS file: /pack/anoncvs/wget/src/http.c,v
retrieving revision 1.61
diff -u -r1.61 http.c
--- http.c  2001/05/27 19:35:02 1.61
+++ http.c  2001/06/14 20:45:57
@@ -718,7 +718,7 @@
   /* Construct the authentication, if userid is present.  */
   user = ou-user;
   passwd = ou-passwd;
-  search_netrc (u-host, (const char **)user, (const char **)passwd, 0);
+  search_netrc (ou-host, (const char **)user, (const char **)passwd, 0);
   user = user ? user : opt.http_user;
   passwd = passwd ? passwd : opt.http_passwd;