[Bug-wget] Bug and Solution to Bug
Hello, I found a bug in wget and I also found the solution to the bug. Here is a description. I have two Ethernet interfaces. 1) local/private and 2) public Ethernet interface. By default wget fails because it binds locally on my local/private Ethernet interface when connecting to the Internet !!! BUG Note, I use DHCP to get my public IP address and I hard code my local/private IP address. To get around the bug: I needed to manually tell wget to locally bind on the public Ethernet interface. Then it works fine. Here is my solution (with a little debugging added on). wget --inet4-only --debug --verbose --bind-address=77.110.21.210 http://www.snort.org/pub-bin/oinkmaster.cgi/ http://www.snort.org/pub-bin/oinkmaster.cgi/%3cmyOinkCode%3e/snortrules-sna pshot-2905.tar.gz myOinkCode/snortrules-snapshot-2905.tar.gz Note: Im using wget from Vyattas latest release - Debian. Here is the startup message: vyatta@Vyatta1:~$ show system boot-messages [0.00] Initializing cgroup subsys cpuset [0.00] Initializing cgroup subsys cpu [0.00] Linux version 2.6.37-1-586-vyatta-virt (root@vyatta) (gcc versi 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Jul 7 22:30:24 PDT 2011 Could you please let me know if this is a known bug or a new bug? Thanks and Regards, Description: Description: cid:image002.jpg@01CB97C3.BFF2AC00Description: Description: Description: Description: cid:image002.png@01CB3D84.E32FF720 LTU is the Official 2011 Swedish Champion in Technology-SM http://ltu.se/ Description: Description: Description: Description: cid:image003.png@01CB3D84.E32FF720 http://ltu.se/ Luleå Technology University Teacher, Research Engineer and Lecturer Todd Booth http://www.ltu.se/org/srt?l=en Department: Computer Science, Electrical and Space Engineering, CSEE (SKE/SRT) http://www.ltu.se/org/srt/Avdelningar/Datavetenskap?l=en Division: Computer Science Specialty: Computer and System Science / http://www.ltu.se/edu/program/FMISA?l=en Information Security Courses:http://www.ltu.se/edu/course/A00/A0004N?l=en A0004N Information Security and http://www.ltu.se/edu/course/A70/A7011N?l=en A7011N Internet Security Direct: +46-910-585 324 Mobile: +46-76-346 3459 Email: mailto:todd.bo...@ltu.se todd.bo...@ltu.se Web: http://ltu.se/ http://LTU.se LinkedIn: mailto:todd.bo...@ltu.se todd.bo...@ltu.se image001.gifimage002.jpgimage003.pngimage006.jpg smime.p7s Description: S/MIME cryptographic signature
Re: [Bug-wget] Wget 1.13.4 v. VMS -- Various problems
[Various other changes/fixes affecting VMS] Still wondering. For the curious, a set of patches should be available at: http://antinode.info/ftp/wget/wget-1_13_4/1_13_4_1.dru That includes the changes to rehabilitate --preserve-permissions. News: The --help output now has one line which exceeds 80 characters: --random-wait wait from 0.5*WAIT...1.5*WAIT secs between retr ievals. Note, too, that, to a casual reader, it's not entirely clear what WAIT refers to here. -w, --wait=SECONDSwait SECONDS between retrievals. --waitretry=SECONDS wait 1..SECONDS between retries of a retrieval. Possibly SECONDS from one of those? Might be easier (or messier) if --random-wait could take a time value, too. Steven M. Schweda sms@antinode-info 382 South Warwick Street(+1) 651-699-9818 Saint Paul MN 55105-2547
Re: [Bug-wget] Problem with wget ,
Juda Barnes wrote: Dear Wget Bug alias , I am facing a problem with Wget, Looks like I am getting a strange charter ג At the end of some lines (see capture below) Also when the wget finish to download a file there is no indication for the average speed in KB/sec I suspect it is related to terminal somehow , [cid:image001.png@01CC8458.BC008180] This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals computer viruses. I had trouble getting your screenshot it was embedded as base64, but didn't show as an attachment. You don't show which wget version you are using, but in those places there are quotes, so it's either ` ' or “” (smart quotes), for which putty doesn't seem to show an appropiate glyph. Anyway, the lack of proper appearance of those quotation marks doesn't affect wget functionality.
Re: [Bug-wget] Wget 1.13.4 v. VMS -- Various problems
Steven M. Schweda s...@antinode.info writes: [Various other changes/fixes affecting VMS] Still wondering. For the curious, a set of patches should be available at: http://antinode.info/ftp/wget/wget-1_13_4/1_13_4_1.dru can you please include a ChangeLog entry for each of them? Thanks, Giuseppe
Re: [Bug-wget] Wget 1.13.4 v. VMS -- Various problems
From: Giuseppe Scrivano gscriv...@gnu.org http://antinode.info/ftp/wget/wget-1_13_4/1_13_4_1.dru can you please include a ChangeLog entry for each of them? --- ChangeLog._orig 2011-09-13 03:08:59 -0500 +++ ChangeLog. 2011-10-07 14:29:59 -0500 @@ -1,3 +1,38 @@ +2011-10-07 Steven Schweda s...@antinode.info + + * connect.c: Add HAVE_SYS_SELECT_H and HAVE_SYS_SOCKET_H conditions + on includes of sys/select.h and sys/socket.h, respectively. + + * ftp.c (getftp): Move BIN_TYPE_TRANSFER macro into VMS-specific + section. On VMS, use Stream_LF attributes for listing files. Pass + BIN_TYPE_FILE to fopen_excl() instead of constant-everywhere true. + + * ftp.c (ftp_retrieve_list): Restore lost test of opt.preserve_perm + (--preserve-permissions) on the chmod() operation. + + * init.c, main.c: Remove deprecated from opt.preserve_perm + (--preserve-permissions). + + * init.c (initialize): Use distinct messages for errors in C macro + SYSTEM_WGETRC and environment-variable SYSTEM_WGETRC. Avoid use of + C macro SYSTEM_WGETRC when it's not defined. + + * log.c (log_close): Avoid closing logfp when it's stderr. + + * main.c (print_help): Restore --preserve-permissions. + + * main.c (main): Avoid using a negative value of longindex as a + subscript (for long_options[]) when searching for --config. + + * main.c (main): Exit the program using exit() instead of return. + (VMS handles these differently, and exit() is better.) + + * openssl.c (ssl_init): Add type cast (SSL_METHOD *) to newly const + meth argument to accommodate OpenSSL version 0.9.8, where that + argument is not const in the OpenSSL function (SSL_CTX_new). + + * utils.c (fopen_excl): Comment typography. + 2011-09-13 Giuseppe Scrivano gscriv...@gnu.org * ftp.c (ftp_retrieve_glob): Propagate correctly the `res' error Note that in openssl.c, accomodate should be accommodate. (Not the only place in the code, but this one would be new and my fault.) The leading-tab indentation in src/ChangeLog seems to have some exceptions. And, of course, there are various changes to the VMS builders and other accessory files, but I don't know how these will be handled. Steven M. Schweda sms@antinode-info 382 South Warwick Street(+1) 651-699-9818 Saint Paul MN 55105-2547