NetBSD/usr.bin
jdolecek 7fb961dd60 Only try to copy the extra incomplete record data if there is anything
actually read already. Albeit it's not damaging to copy zero data
for bufend == crec->data case, the buffer end could also be between
memory position 'crec' and 'crec->data'. Thus, we could end up with
negative 'bufend - crec->data' value, and obvious havoc.

This change fixes lib/12673, though the problem was masked and no longer
repeatable with the provided example after the recent buffer size bump.
The change was tested with the buffer size change backed off, and really
fixes the problem in the PR.
2001-05-15 11:49:25 +00:00
..
apply convert to use getprogname() 2001-02-19 23:03:42 +00:00
apropos convert to use getprogname() 2001-02-19 23:03:42 +00:00
asa
at
audio -g for debug, try without when done debugging 2001-05-10 19:07:39 +00:00
awk document systime(), strftime(), gensub(); for gensub(), note that the \n 2001-02-08 20:54:50 +00:00
banner Fix more problems noted in PR 6649 2001-03-07 22:34:35 +00:00
basename
bdes convert to use getprogname() 2001-02-19 23:03:42 +00:00
biff
bzip2 add missing prototypes in order to enable full WARNS 2001-02-05 01:35:45 +00:00
bzip2recover
cal
calendar convert to use getprogname() 2001-02-19 23:03:42 +00:00
cap_mkdb Examine input files and set the openinfo hint accordingly to number of 2001-01-28 20:01:42 +00:00
cdplay Fix date, Os and whitespace. 2001-04-09 12:30:53 +00:00
checknr comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
chflags
chpass progname not used here, so don't extern it 2001-02-13 00:11:45 +00:00
cksum Add sections to xrefs, and remove some unnecessary whitespace while I'm 2001-04-04 09:35:23 +00:00
cmp use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
col
colcrt
colrm
column
comm
compile_et
compress
crontab
crunch Define both NLIST_AOUT and NLIST_ELF32 on all m68k 2001-02-18 05:22:46 +00:00
ctags teach ctags(1) about // comments. 2001-05-03 22:25:00 +00:00
cut
dirname
du use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
eject fix NetBSD RCS id tags 2001-02-27 19:04:39 +00:00
elf2aout
elf2ecoff
env fix nested extern 2001-02-05 01:39:27 +00:00
error Replace some .Xr to non-existing man pages with .Ic (since we don't 2001-05-08 17:18:04 +00:00
expand
false
fdformat Build on bebox, too. 2001-04-12 02:31:52 +00:00
fgen remove redundant decl 2001-02-05 01:47:01 +00:00
file Make this cross-compile friendly - build a cut down program called 2001-05-09 14:05:52 +00:00
find fixed nested externs 2001-02-05 01:53:48 +00:00
finger fix nested extern 2001-02-05 01:56:51 +00:00
fmt
fold
fpr
from
fsplit
fstat Change xref for vmstat(8) to vmstat(1). 2001-05-06 23:48:31 +00:00
ftp convert to use getprogname() 2001-02-19 23:03:42 +00:00
gencat Add RCS Id, and one whitespace fix. 2001-04-09 12:31:34 +00:00
getconf
getopt
gprof
head convert to use getprogname() 2001-02-19 23:03:42 +00:00
hesinfo convert to use getprogname() 2001-02-19 23:03:42 +00:00
hexdump Improve usage of `comprise' according to Webster and misc/10893 2001-05-06 12:29:18 +00:00
id convert to use getprogname() 2001-02-19 23:03:42 +00:00
indent Correct one typo in the patch from PR 9220. 2001-03-23 20:12:41 +00:00
innetgr convert to use getprogname() 2001-02-19 23:03:42 +00:00
ipcrm Fix date, and some whitespaces. 2001-04-09 12:32:06 +00:00
ipcs convert to use getprogname() 2001-02-19 23:03:42 +00:00
join Add section to xref. 2001-04-04 09:36:51 +00:00
jot Reverse the if and else clauses for the chardata test if there is 2001-03-17 11:43:06 +00:00
kdestroy
kdump Add svr4_32 info. 2001-03-11 21:28:59 +00:00
kf
kinit
klist
kpasswd
ktrace Add a -s option to open the trace file with O_SYNC. 2001-05-04 07:09:55 +00:00
ktruss Use the errno.h and signal.h passed in on the command line. 2001-02-18 18:38:18 +00:00
lam
last
lastcomm Improve markup a bit. Add section to xref. 2001-04-04 09:37:19 +00:00
ldd convert to use getprogname() 2001-02-19 23:03:42 +00:00
leave
less convert to use getprogname() 2001-02-19 23:03:42 +00:00
lex remove duplicate decls/nested externs. 2001-01-06 02:09:48 +00:00
locate Trap also SIGHUP and SIGQUIT. Suggested by Jim Bernard & Christos 2001-05-14 14:58:59 +00:00
lock
logger use getprogname() 2001-02-20 23:51:59 +00:00
login Sort SEE ALSO section, and correct section for kerberos (1 -> 8). 2001-04-04 09:37:51 +00:00
logname
look
lorder
m4 Sprinkle some const, and rename a shadow-variable. 2001-03-05 20:26:17 +00:00
machine
mail Add section to xref. Whitespace and punctuation fixes. 2001-04-04 09:38:32 +00:00
make Modifier :P avoid segfault if gn is found but path is NULL. 2001-05-12 06:48:49 +00:00
man Remove /usr/X11/man/whatis.db from path list, as it can no longer found 2001-04-20 11:45:37 +00:00
menuc use getprogname() 2001-02-20 23:51:59 +00:00
mesg
midiplay fix a simple, but important bug for system exclusive messages. 2001-04-07 21:03:41 +00:00
mixerctl
mk_cmds
mkdep a couple of tiny whitespace cleanups 2001-03-22 02:41:02 +00:00
mkfifo
mklocale Comment out colldef xref. 2001-04-04 12:07:04 +00:00
mkstr
mktemp Fix date. 2001-04-09 12:33:50 +00:00
modstat
msgc
msgs
netgroup convert to use getprogname() 2001-02-19 23:03:42 +00:00
netstat Change xref for vmstat(8) to vmstat(1). 2001-05-06 23:48:31 +00:00
newsyslog Sleep for 10 seconds before compressing the old log. 2001-05-06 21:03:25 +00:00
nfsstat Change xref for vmstat(8) to vmstat(1). 2001-05-06 23:48:31 +00:00
nice
nl
nohup
openssl use openssl 0.9.6a. shlib major # is bumped for libcrypto, libssl and 2001-04-12 07:48:03 +00:00
pagesize
passwd 80 column police. 2001-03-28 03:17:41 +00:00
paste
patch
pmc use getprogname() 2001-02-20 23:51:59 +00:00
pr
printenv
printf Change to use {u,}intmax_t internally (was: (unsigned) long). 2001-05-05 17:29:39 +00:00
qsubst The tputs() print char function needs to return an int. 2001-04-22 05:35:35 +00:00
quota Fix order of arithmetic operations so that NFS file system quotas over 2001-03-29 21:54:01 +00:00
rdist use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
renice convert to use getprogname() 2001-02-19 23:03:42 +00:00
rev be more descriptive in the description of what rev(1) does 2001-01-21 01:01:08 +00:00
rlogin kerberos(3) -> (8). 2001-04-04 09:40:07 +00:00
rpcgen Update date (-M added some time ago). Markup and punctuation fixes. 2001-04-04 09:41:36 +00:00
rpcinfo netconfig(4) -> (5). Fix option section. Whitespace fixes. Sort SEE ALSO. 2001-04-04 09:42:49 +00:00
rs
rsh kerberos(3) -> (8). Sort SEE ALSO. 2001-04-04 09:43:24 +00:00
rup labels (even default:) _must_ be followed by statements! usr.bin/fgen/fgen.l 2001-01-16 02:43:37 +00:00
ruptime ANSIfy, alphabetize arguments. 2001-01-05 07:14:46 +00:00
rusers Add section to xref. 2001-04-04 09:43:52 +00:00
rwall
rwho add section to xref. 2001-04-04 09:44:08 +00:00
script
sed
shar
shlock
showmount comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
shuffle Power of 2 realloc. 2001-03-16 08:02:32 +00:00
skey Fix date. 2001-04-09 12:33:50 +00:00
skeyinfo Fix date. 2001-04-09 12:33:50 +00:00
skeyinit Fix date, and remove a trailing dot in .Nd. 2001-04-09 12:35:00 +00:00
soelim make compile with WARNS=2, and enable WARNS=2 in the Makefile 2001-04-09 13:31:20 +00:00
sort Only try to copy the extra incomplete record data if there is anything 2001-05-15 11:49:25 +00:00
split
ssh upgrade to openssh 2.5.4 (2001/4/10). 2001-04-10 08:07:54 +00:00
string2key build & install string2key manpage, too 2001-01-24 23:09:30 +00:00
su Revert to previous, less offensive, error message when a malloc fails. 2001-04-23 06:52:22 +00:00
systat Change xref for vmstat(8) to vmstat(1). 2001-05-06 23:48:31 +00:00
tail avoid C sequence point issues warned about by development version of gcc. 2001-01-16 02:41:17 +00:00
talk Negative exit code cleanup: Replace exit(-x) with exit(x). 2001-04-06 11:13:45 +00:00
tcopy use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
tee
telnet Whitespace and punctuation fixes. 2001-04-04 09:47:13 +00:00
tftp
time Correct double s' in ressource'. 2001-02-03 19:37:56 +00:00
tip Add section to xref. Whitespace fixes. 2001-04-04 09:48:11 +00:00
tn3270 Replace Xr by Ic in one place. 2001-04-05 11:46:29 +00:00
top if the read() on stdin for a command fails, exit. 2001-04-12 14:10:05 +00:00
touch
tput Add section to xrefs. Markup improvements. 2001-04-04 09:48:37 +00:00
tr
true
tset
tsort call setprogname(argv[0]) at start of main() 2001-02-21 00:06:22 +00:00
tty
ul Add section to xref. Sort SEE ALSO. Lowercase nroff in xref. Fix 2001-04-04 09:49:35 +00:00
uname
unexpand
unifdef
uniq
units Add 's' to netherlandguilder. Fixes bin/12082 by Benjamin Wong. 2001-01-30 12:26:11 +00:00
unvis
usbhidaction use getprogname() 2001-02-20 23:51:59 +00:00
usbhidctl 80 column police. 2001-03-28 03:17:41 +00:00
users
uudecode
uuencode
vacation Lowercase sendmail in xref. 2001-04-04 09:49:47 +00:00
vgrind Add section to xrefs. Whitespace fixes. 2001-04-04 09:50:17 +00:00
vi Do the right thing when displaying an empty screen line when the corresponding 2001-05-13 17:07:31 +00:00
vis
vmstat Move vmstat.8 to vmstat.1, since the program lives in /usr/bin now and is 2001-05-06 23:37:36 +00:00
w convert to use getprogname() 2001-02-19 23:03:42 +00:00
wall ANSIfy 2001-01-05 04:06:49 +00:00
wc
what
whatis
whereis
which
who
whois Negative exit code cleanup: Replace exit(-x) with exit(x). 2001-04-06 11:13:45 +00:00
window environ(5) -> (7). Improve some xrefs. Whitespace fixes. 2001-04-04 09:51:22 +00:00
write
xargs
xinstall slight portability improvement: use madvise(... MADV_SEQUENTIAL ...) 2001-03-21 23:16:33 +00:00
xlint only error on a newline in a string if -t (traditional) mode is enabled, since 2001-05-07 09:02:55 +00:00
xstr convert to use getprogname() 2001-02-19 23:03:42 +00:00
yacc remove duplicate prototypes. 2001-02-04 17:45:24 +00:00
yes
ypcat convert to use getprogname() 2001-02-19 23:03:42 +00:00
ypmatch convert to use getprogname() 2001-02-19 23:03:42 +00:00
ypwhich convert to use getprogname() 2001-02-19 23:03:42 +00:00
Makefile put back sort, it's fixed now 2001-01-13 20:11:49 +00:00
Makefile.inc