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 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
at fix up various .Nm abuses: 2000-11-07 06:43:24 +00:00
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 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
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 Nit. 2000-10-10 14:27:14 +00:00
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 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
compile_et Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
compress More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
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 s/a.out/ECOFF/ "oops" 2000-08-24 01:20:35 +00:00
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 Tweak last to only allow highbit characters >=160, to avoid issues with 2000-10-02 18:32:55 +00:00
fold Un-__P and ANSIfy. 2000-09-08 12:57:28 +00:00
fpr
from Oops, errx() not err(). 2000-09-08 13:14:33 +00:00
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 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
getopt Fix example; problem report and solution by Jim Bernard in PR 10259. 2000-11-08 12:53:14 +00:00
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 Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
kdump Add svr4_32 info. 2001-03-11 21:28:59 +00:00
kf Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
kinit Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
klist Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
kpasswd Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
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 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
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 Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile. 2000-10-18 00:24:18 +00:00
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 Add ++ and -- for changing mixer controls. They bump the value to 2000-12-29 13:30:26 +00:00
mk_cmds Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
mkdep a couple of tiny whitespace cleanups 2001-03-22 02:41:02 +00:00
mkfifo - The type of return value of setmode is a void * and getmode takes it, 2000-10-10 14:30:40 +00:00
mklocale Comment out colldef xref. 2001-04-04 12:07:04 +00:00
mkstr More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
mktemp Fix date. 2001-04-09 12:33:50 +00:00
modstat add support for COMPAT LKMs 2000-12-10 11:52:09 +00:00
msgc Fix typos and wording. 2000-12-04 22:33:52 +00:00
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 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
nl More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
nohup * Support the getopt() "--" option delimiter; addresses PR standards/11230. 2000-11-04 18:51:40 +00:00
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 Support the 1003.2-92 -i option to specify a patchfile; 2000-10-16 07:05:04 +00:00
pmc use getprogname() 2001-02-20 23:51:59 +00:00
pr Don't be silly and try to read an strftime() format string from the LC_TIME 2000-10-22 15:06:52 +00:00
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 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
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 - Knf auto variables in modified line by me. 2000-10-02 03:28:42 +00:00
rwho add section to xref. 2001-04-04 09:44:08 +00:00
script
sed More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
shar
shlock More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
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 fix argument validation mistake in setpeer(). 2000-12-30 18:00:18 +00:00
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 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
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 Sort options alphabetically 2000-10-19 11:34:10 +00:00
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 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
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 Move out-of-order line to where it belongs. 2000-10-05 17:50:56 +00:00
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 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
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 un__Pify, ANSIfy and constify. 2001-01-03 13:25:11 +00:00
xargs For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
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 Fix indentation.. 2000-12-30 14:44:49 +00:00