freebsd-dev/usr.bin
Dag-Erling Smørgrav a17e51c108 When resuming an HTTP download, we failed to verify that the range
returned by the server matched what we requested, and blindly appended
what we received to what we already had.  This could go two ways: if the
delivered offset was higher than expected, the local file would contain
duplicate data, while if it was lower than expected, there would be data
missing from the middle of the file.  Furthermore, if the transfer was
interrupted again, each subsequent attempt would compound the error.
Fix the first problem by restarting the transfer from scratch if there
is a gap, and the second by explicitly seeking to the correct location
in the local file so as to overwrite any duplicated data.

PR:		bin/117277
Approved by:	re (kib)
MFC after:	3 weeks
2011-09-15 22:50:31 +00:00
..
alias Make hash, type and ulimit available via execve(). 2010-04-25 17:38:53 +00:00
apply Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ar Don't try to free() an address returned by mmap(). This appears to be 2011-08-04 14:18:09 +00:00
asa
at Close file and directory descriptors 2010-11-19 10:15:29 +00:00
atm
awk
banner Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
basename Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
bc Move most of the remaining USD/PSD/SMM papers into share/doc 2010-12-04 10:11:20 +00:00
biff Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
bluetooth
brandelf
bsdiff mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
bzip2
bzip2recover
c89 Revert most of r210764, now that mdocml does the right 2010-12-28 10:08:50 +00:00
c99 Revert most of r210764, now that mdocml does the right 2010-12-28 10:08:50 +00:00
calendar Fix run-time breakage when encoutering invalid input-data. 2011-07-11 22:01:39 +00:00
cap_mkdb Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
catman For POLA reasons, disable SGR sequences in catpages. 2011-08-05 15:07:28 +00:00
chat mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
checknr Remove duplicate "in". 2011-03-01 11:47:51 +00:00
chkey Fix fd leak 2010-11-19 10:18:58 +00:00
chpass Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
cksum Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
clang Upgrade our copy of llvm/clang to r135360, from upstream's trunk. 2011-07-17 19:51:40 +00:00
cmp Eliminate unneeded headers. 2011-06-21 20:44:06 +00:00
col Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
colcrt Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
colldef Don't generate input() since it's not used. 2010-11-22 14:16:22 +00:00
colrm Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
column Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
comm Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
compile_et
compress Remove $Log$ keyword, which can cause annoyance in diffs in some cases. 2011-03-31 14:35:33 +00:00
cpio Correctly link bsdcpio and bsdtar against libmd and libcrpyto 2011-08-01 08:22:40 +00:00
cpuset Add two more features to cpuset(1): 2011-01-14 19:57:28 +00:00
csplit
csup Fix typos in error messages. 2011-09-13 20:35:34 +00:00
ctags Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
cut Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
dc Move most of the remaining USD/PSD/SMM papers into share/doc 2010-12-04 10:11:20 +00:00
dig
dirname Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
du Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ee
elf2aout
elfdump Teach elfdump(1) about the SUNW_dof section. 2010-08-11 18:02:48 +00:00
enigma mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
env Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
expand Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
false Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
fetch When resuming an HTTP download, we failed to verify that the range 2011-09-15 22:50:31 +00:00
file
file2c
find Using statfs.f_fstypename rather than statfs.f_type whilst performing fstype 2011-06-13 05:22:07 +00:00
finger Staticify cleanup() which is not referenced in other places. 2011-06-21 20:33:55 +00:00
fmt Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
fold Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
from Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
fstat fuser: Fix skipping "SIG" on signal names (-s). 2011-06-18 21:53:36 +00:00
fsync
ftp Merge tnftp-20100108 from the vendor branch into head. 2011-06-20 08:00:32 +00:00
gcore Match size_t and ssize_t by using %zu and %zd instead of %d. 2011-07-11 05:46:15 +00:00
gencat mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
getconf
getent Change how getent utmpx works. 2010-04-02 11:05:59 +00:00
getopt Fix typo in example getopt(1) script: $i vs $1 [1] 2011-01-26 18:43:15 +00:00
gprof Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
grep - Fix exclusion of directories from a recursive search 2011-08-17 13:58:39 +00:00
gzip Fix a regression introduced with previous changeset: if output is stdout, 2011-05-25 18:04:11 +00:00
head Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
hesinfo
hexdump Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
host
iconv Remove redundant assignments to WARNS. 2011-06-06 20:24:17 +00:00
id Add two new system calls, setloginclass(2) and getloginclass(2). This makes 2011-03-05 12:40:35 +00:00
indent Use NULL instead of 0 when setting up pointer. 2010-08-10 06:58:12 +00:00
ipcrm
ipcs Remove semaphore map entry count "semmap" field and its tuning 2011-07-14 14:18:14 +00:00
join Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
jot Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
kdump Add 2-clause BSD license. 2011-06-17 06:12:28 +00:00
keylogin
keylogout
killall Simplify various code that allowed for sys_signame being lower case. 2011-03-06 19:50:47 +00:00
ktrace Remove duplicated header files 2011-06-24 07:18:44 +00:00
ktrdump Add -H flag to print thread id. 2011-01-26 06:36:14 +00:00
lam Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
last Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
lastcomm Remove unneeded headers. 2011-06-21 20:36:10 +00:00
ldd Fix clang warnings. 2011-06-18 13:56:33 +00:00
leave Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
less Regenerated with latest configure script. 2011-05-10 01:05:41 +00:00
lessecho
lesskey
lex Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
limits Add link to rctl(8). 2011-04-10 10:17:01 +00:00
locale
locate Properly use SCHAR_MAX instead of CHAR_MAX for 0x7f. This fixes operation 2010-11-23 15:08:56 +00:00
lock Fix style bug introduced in r216696. 2010-12-27 15:05:15 +00:00
lockf mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
logger When specifying the -t option (send tag in front of message), this tag 2011-04-08 12:33:07 +00:00
login Call pam_setcred() before login_getpwclass to support home directories 2011-05-03 10:18:27 +00:00
logins
logname Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
look Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
lorder Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
lsvfs
lzmainfo Add two public headers missing in r207842 2010-05-10 07:47:31 +00:00
m4 Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
mail o Fix -u flag description: it takes a username as an argument. 2010-12-25 17:35:30 +00:00
make Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
makewhatis
man Clean up markup. 2011-08-04 08:50:33 +00:00
mesg Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
minigzip Enable mmap for minigzip(1). 2010-03-22 21:19:17 +00:00
ministat Make the second example command more closely match the demo output, and as 2010-06-27 23:11:35 +00:00
mkcsmapper [mdoc] Fixed .Dt call. 2011-05-25 14:13:53 +00:00
mkcsmapper_static Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
mkdep Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mkesdb [mdoc] Fixed .Dt call. 2011-05-25 14:13:53 +00:00
mkesdb_static Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
mkfifo Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mklocale Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mkstr Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mktemp Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mkuzip Fixed an embedded shell script. 2011-05-13 09:55:48 +00:00
msgs Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mt Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
nc MFV: nc(1) from OpenBSD 4.8. 2010-10-19 00:01:53 +00:00
ncal Fix typo in order of markup and text. 2011-07-11 10:42:36 +00:00
ncplist
ncplogin Remove duplicated header files 2011-06-24 07:18:44 +00:00
netstat Fix the following bugs related to the SCTP support of netstat: 2011-07-22 16:42:12 +00:00
newgrp
newkey mdoc cleanup 2010-06-02 10:20:23 +00:00
nfsstat Fix nfsstat(1) so that it prints out correct stats for the 2011-08-23 13:44:56 +00:00
nice Not only had I included a syntax / style error, nice.3 is also 2011-02-26 11:20:51 +00:00
nl mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
nohup Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
nslookup
nsupdate bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
opieinfo
opiekey
opiepasswd
pagesize Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
passwd Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
paste Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
pathchk pathchk(1): Fix the example so it allows arbitrary pathnames. 2010-05-01 22:10:45 +00:00
perror The number after the command is *not* optional. 2010-03-11 12:18:52 +00:00
pr
printenv Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
printf printf(1): Document that %c and precision for %b/%s use bytes, not chars. 2011-05-28 14:32:47 +00:00
procstat Updates to libprocstat(3) and procstat(1) to allow monitoring Capsicum 2011-08-14 00:42:09 +00:00
quota Fix quota(1) output. 2011-06-30 09:20:26 +00:00
rctl Rename resource names to match these in login.conf. 2011-07-14 19:18:17 +00:00
renice Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
rev Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
revoke
rlogin Raise rlogin back to a WARNS level of 6. 2011-04-27 17:36:37 +00:00
rpcgen Use strlcpy(). 2011-07-11 05:31:52 +00:00
rpcinfo Constify a few string variables. While I'm there, also convert usage() to 2011-05-13 22:35:06 +00:00
rs Document the input line length limit. 2011-02-25 19:10:19 +00:00
rsh Add __unused 2010-12-20 08:47:43 +00:00
rup Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ruptime Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
rusers Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
rwall Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
rwho Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
script Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
sed sed: Try hard links to make -i target available continually. 2011-01-08 00:03:18 +00:00
seq Fix typos. 2010-11-09 10:59:09 +00:00
setchannel Apply style(9) and unbreak build. 2010-11-06 15:04:56 +00:00
shar Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
showmount Ensure there is a whitespace after a mount point. 2011-05-24 06:56:40 +00:00
smbutil
sockstat o Make sockstat -6 output more readable for long ipv6 2010-03-30 09:58:21 +00:00
split Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
stat Synthesize the change from NetBSD's 1.33: 2011-02-11 05:33:35 +00:00
su Attempt to clear up some confusion in the following example, by stating 2011-06-06 19:33:19 +00:00
systat Remove duplicated header files 2011-06-24 07:18:44 +00:00
tabs
tail tail: Fix crash if -F'ed file's filesystem disappears. 2011-08-14 13:37:38 +00:00
talk Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tar Correctly link bsdcpio and bsdtar against libmd and libcrpyto 2011-08-01 08:22:40 +00:00
tcopy Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tee Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
telnet
tftp peeraddr is only used in sizeof() evaluations, so instead of declaring it 2011-07-11 05:57:49 +00:00
time Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tip Flush the scriptfile whenever we see a non-graphical character to get 2011-05-10 10:58:57 +00:00
top Rework the dynamic per-CPU stats code a bit. Always set 'statics->ncpus' 2011-07-18 21:15:47 +00:00
touch Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tput Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tr Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
true Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
truncate
truss Fix typos in comments, no functional changes. 2011-05-19 20:35:40 +00:00
tset Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tsort Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tty Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ul Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
uname Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
unexpand Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
unifdef Update to upstrea version 2.5.6. 2011-01-21 18:10:11 +00:00
uniq Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
units It seems when I added code for affine unit changes to units, I 2011-09-15 19:52:43 +00:00
unvis Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
unzip Fix broken mdoc. 2011-08-01 22:21:18 +00:00
usbhidaction MFprojects/hid: 2011-07-30 13:22:44 +00:00
usbhidctl MFprojects/hid: 2011-07-30 13:22:44 +00:00
users Let the size of the namebuf depend on the size of the ut_user field. 2011-06-18 07:47:15 +00:00
uudecode Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
uuencode Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
vacation
vgrind Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
vi
vis Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
vmstat sintrcnt/sintrnames is the address of the size, not the actual size. 2011-07-18 19:42:18 +00:00
w Only print entries for which ut_host points to a character device. 2011-07-05 14:12:48 +00:00
wall If one's message is longer than the buffer size, then we reset 'cnt' at the 2011-07-12 00:31:11 +00:00
wc Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
what Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
whereis
which
who Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
whois Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
write Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
wtmpcvt err() takes a printf format. 2010-06-15 04:47:16 +00:00
xargs Discourage from using "cp -r". 2011-03-24 13:52:59 +00:00
xinstall Teach tools/install.sh the -d directory mode. 2011-02-22 08:07:17 +00:00
xlint catstrg() does not set the resulting string length. 2011-08-08 05:22:09 +00:00
xstr Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
xz Upgrade xz to git snapshot as of 20101010 2010-10-11 21:16:50 +00:00
xzdec Add two public headers missing in r207842 2010-05-10 07:47:31 +00:00
yacc Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
yes Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ypcat
ypmatch
ypwhich Variable 'getmap' is unused. 2010-06-19 16:24:55 +00:00
Makefile Add WITHOUT_UTMPX switch to the build system. 2011-06-17 21:30:21 +00:00
Makefile.amd64 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.arm Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.i386 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.ia64 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.inc
Makefile.powerpc Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.sparc64 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00