Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix buffer overflow. This is FreeBSD-SA-04:16.fetch. | cperciva | 2004-11-18 | 1 | -1/+2 |
| | | | | Approved by: des | ||||
* | Update copyright years. | des | 2004-09-21 | 1 | -1/+1 |
| | |||||
* | The check for r_flag was accidentally removed in the previous commit. | des | 2004-08-26 | 1 | -1/+1 |
| | | | | | Submitted by: SANETO Takanori <sanewo@ba2.so-net.ne.jp> MFC after: 3 days | ||||
* | Fix a couple of edge cases in which sb.st_size may be incorrect or | des | 2004-08-15 | 1 | -5/+16 |
| | | | | | | | | meaningless. In particular, don't assume that it is left untouched if stat(2) fails; that assumption happens to fail at high optimization levels on some platforms. MFC after: 1 week | ||||
* | Don't strip trailing linear whitespace from passwords. | des | 2004-07-27 | 1 | -5/+5 |
| | | | | MFC after: 2 weeks | ||||
* | Style nits. | des | 2004-07-27 | 1 | -5/+4 |
| | |||||
* | Truncate long file names in stat_display(), as was originally intended. | des | 2004-07-05 | 1 | -1/+1 |
| | | | | MFC after: 1 week | ||||
* | The description of the -S option in the man page says we won't fail if the | des | 2004-06-24 | 1 | -1/+0 |
| | | | | | | | remote size is unknown, but we do. Resolve this in the man page's favor. Requested by: Andre Albsmeier <andre.albsmeier@siemens.com> MFC after: 1 week | ||||
* | Fix integer overflow in the file size output when dealing with | le | 2004-05-19 | 1 | -3/+3 |
| | | | | | | large files (i.e. DVD images). Reviewed by: des@ | ||||
* | Workaround for servers that ignore byte ranges when using chunked | des | 2004-04-06 | 1 | -1/+1 |
| | | | | | | encoding. MFC after: 3 days | ||||
* | Use %zu for size_t, like God intended. | des | 2004-02-18 | 1 | -1/+1 |
| | |||||
* | Fix printf() format bug in previous commit (size_t != int). | des | 2004-02-18 | 1 | -17/+19 |
| | | | | | | | Use %ju and an (uintmax_t) cast to print size_t values. Use %jd and an (intmax_t) cast to print off_t values. Use off_t variables to hold the difference between two off_t values. Don't bother with unsigned char where char will do nicely. | ||||
* | Revamp the statistics code, and switch to a much more compact display | des | 2004-02-18 | 1 | -48/+56 |
| | | | | | format. The old code tried to produce the exact same output as the pre-libfetch implementation, but I no longer see any value in this. | ||||
* | Use floating point arithmetic to compute the ETA to avoid integer overflow | des | 2003-03-11 | 1 | -1/+1 |
| | | | | during slow transfers of large files. | ||||
* | Clean up the ETA logic a bit and make sure it works for restarted transfers. | des | 2003-03-11 | 1 | -7/+8 |
| | |||||
* | Slight cleanup of the ETA / BPS code. Avoid a division by zero. | des | 2003-01-23 | 1 | -14/+12 |
| | |||||
* | Add -N option to specify a netrc file. | des | 2003-01-22 | 1 | -29/+66 |
| | | | | | | | Fix handling of -v option. Don't treat negative offsets as valid positive ones. Clean up the ETA and transfer rate code. Show transfer rate along with ETA if the verbose level is higher than 1. | ||||
* | Use the URL instead of the output file name when reporting errors relating | des | 2002-11-27 | 1 | -6/+6 |
| | | | | | | | | to the remote document. PR: 33856 MFC after: 1 week Approved by: re | ||||
* | Don't set atime / mtime if we don't have an output file, which can happen | des | 2002-11-13 | 1 | -2/+2 |
| | | | | in certain failure scenarii (mostly DNS trouble). | ||||
* | Don't divide by zero to calculate the ETA, even if we haven't gotten | fenner | 2002-11-12 | 1 | -1/+1 |
| | | | | any data in 30 seconds. | ||||
* | Don't exit with success after timeout during authentication. | fenner | 2002-11-07 | 1 | -0/+4 |
| | |||||
* | Don't complain about not knowing the remote file size when working in | des | 2002-10-27 | 1 | -1/+1 |
| | | | | | | | quiet mode. PR: bin/37079 Submitted by: Nicolas Rachinsky <list@rachinsky.de> | ||||
* | Whitespace and indentation cleanup. | des | 2002-10-27 | 1 | -12/+12 |
| | |||||
* | Forgot to disable alarms after fetchXGet() in previous commit. | des | 2002-10-27 | 1 | -0/+2 |
| | |||||
* | Add an ETA timer that kicks in after 30 seconds. | des | 2002-10-27 | 1 | -16/+45 |
| | | | | | | | | | | | | | | | | Re-add alarm(2) calls around the calls to fetchStat(3) and fetchXGet(3), since these calls can still time out on DNS lookups or TCP connect(2). Remove the alarm(2) calls in the main loop, since all methods properly handle transfer timeouts (as opposed to connection timeouts). Set the sigalrm flag if a timeout occurs in the main loop. Move the signal: label up a little so we still set the atime and mtime when the transfer times out or is interrupted, so that restarted transfers will work as expected (as long as the file still exists). MFC after: 2 weeks | ||||
* | s/optarg/s/ (cut'n'paste braino) | des | 2002-08-27 | 1 | -6/+4 |
| | | | | Spotted by: kris | ||||
* | Use strtol(3) instead of a home-grown version, and fix a "possibly | des | 2002-07-28 | 1 | -36/+24 |
| | | | | unitialized variable" warning. | ||||
* | Usage style sweep: spell "usage" with a small 'u'. | des | 2002-04-22 | 1 | -1/+1 |
| | | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/. | ||||
* | Restored the part of 1.45 that was clobbered in rev.1.46: | bde | 2002-03-27 | 1 | -0/+1 |
| | | | | | #include <sys/time.h> instead of depending on namespace pollution in <sys/stat.h> for the declaration of struct timeval. | ||||
* | Add FBSDID. Remove unused include. Getopt returns -1 not EOF. | charnier | 2002-03-26 | 1 | -5/+5 |
| | |||||
* | #include <sys/time.h> instead of depending on namespace pollution in | bde | 2002-02-25 | 1 | -2/+2 |
| | | | | | | | | | <sys/stat.h> for the declaration of struct timeval. Removed unused includes (<time.h> doesn't declare anything of interest; only <sys/time.h> does). Sorted includes a bit. | ||||
* | If downloading to a temporary file, set the timestamp on the temp file, not | des | 2002-02-16 | 1 | -2/+2 |
| | | | | | | | | on the file we're replacing. PR: bin/34992 Submitted by: Shunichiro Ariura <syun1rou@blackshell.org> MFC after: 1 week | ||||
* | Set fetchDebug if v_level is 3 or more. | des | 2001-12-09 | 1 | -0/+2 |
| | | | | | PR: bin/32615 MFC after: 1 week | ||||
* | Remove an extraneous argument to fprintf that -Wformat noticed. | iedowse | 2001-11-10 | 1 | -1/+1 |
| | | | | Reviewed by: des | ||||
* | Remove a debugging warnx() that got committed by mistake. | des | 2001-11-03 | 1 | -1/+0 |
| | |||||
* | Don't print running stats unless we're the foreground process. | des | 2001-09-23 | 1 | -0/+11 |
| | | | | PR: 30764 | ||||
* | Add a cast to silence a warning (error because of WARNS=2) on Alpha. | mike | 2001-09-10 | 1 | -1/+1 |
| | | | | Discussed with: des | ||||
* | If the local file does not exist, or is a regular file, and we're not trying | des | 2001-09-08 | 1 | -27/+71 |
| | | | | | | | | | | | | | to resume a transfer, download the requested document into a temporary file which we later rename. This avoids leaving half-completed files around in case of a crash (it'll still leave a half-completed file, but with a hope- fully non-conflicting name), and should reduce the need for human inter- vention on ports-building machines. The temporary file name for "foo/bar" is constructed by invoking mkstemps() with the pattern "foo/.fetch.XXXXXX.bar" Requested by: obrien | ||||
* | Remove a blank line that snuck in with the previous commit. | des | 2001-08-18 | 1 | -1/+1 |
| | | | | Set the default timeout to 120 seconds instead of 0 (no timeout). | ||||
* | Add some comments. | des | 2001-08-17 | 1 | -3/+26 |
| | |||||
* | Include value of command line argument that causes an error message or | se | 2001-07-28 | 1 | -6/+9 |
| | | | | | | | warning in said message, since fetch may be run from a makefile or script which does not print the command line. Approved by: des | ||||
* | If we're writing to stdout, we don't care about the size. | des | 2001-07-17 | 1 | -1/+1 |
| | | | | Submitted by: wollman | ||||
* | WARNS cleanup + remove an unused macro and an unused function argument. | des | 2001-07-17 | 1 | -648/+653 |
| | |||||
* | Fix an embarassing if-test-reversal bug that broke scheme guessing. | des | 2001-07-08 | 1 | -2/+2 |
| | |||||
* | Don't try to print a completion percentage for zero-size files. | des | 2001-06-01 | 1 | -1/+1 |
| | | | | | PR: 27780 Submitted by: Craig Leres <leres@ee.lbl.gov> | ||||
* | Damn. Fix typo in previous commit. | des | 2001-05-27 | 1 | -1/+1 |
| | |||||
* | When running on a tty, install an authentication callback. | des | 2001-05-26 | 1 | -8/+52 |
| | |||||
* | Bring the usage message in synch with reality. | des | 2001-03-28 | 1 | -3/+2 |
| | | | | PR: bin/26160 | ||||
* | Now that libfetch uses the high port range by default, add a -U option to | des | 2001-03-24 | 1 | -7/+10 |
| | | | | make it use the low (default) port range instead. | ||||
* | If SIGINFO is received during the transfer, print a status line similar | des | 2001-03-07 | 1 | -5/+29 |
| | | | | | | | | to the summary shown at the end of the transfer. Some days, I really hate Unix... Suggested by: cracauer |