This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
wget 1.4.5 patch
- To: gnu-win32 at cygnus dot com
- Subject: wget 1.4.5 patch
- From: cuma at cuma dot SNMG dot net
- Date: Tue, 17 Jun 1997 07:21:00 +0800 (CST)
Here is my little patch for wget 1.4.5
to fix user-id problem and to add include <errno.h> in config.h
run patch before you ./configure it.....
cuma@cuma.SNMG.net
diff -cr ../wget-1.4.5/config.h.in ./config.h.in
*** ../wget-1.4.5/config.h.in Tue Apr 22 12:23:43 1997
--- ./config.h.in Thu Jun 12 04:34:41 1997
***************
*** 201,203 ****
--- 201,204 ----
#endif /* HAVE_STRERROR */
#endif /* CONFIG_H */
+ #include <errno.h>
diff -cr ../wget-1.4.5/src/host.c ./src/host.c
*** ../wget-1.4.5/src/host.c Sun Feb 16 03:22:55 1997
--- ./src/host.c Tue Jun 17 07:03:11 1997
***************
*** 433,441 ****
--- 433,444 ----
first = 0;
if (!mycuserid(address))
{
+ strcpy(address,"proxy");
+ /* patch by cuma@csie.ncu.edu.tw to fix user-id problem on win95
if (!opt.quiet)
fprintf(stderr, "Cannot determine user-id.\n");
exit(1);
+ */
}
i = strlen(address);
address[i++] = '@';
Only in ./: wget-1.4.5.patch