freebsd-dev/usr.bin
Bruce Evans 49e6559936 Yet^2 another fix for the line continuation bug.
The fundamental problem with the original code is that it accesses
p[-2] which is one before the beginning of the input buffer for
empty lines.  rev.1.6 just moved the problem from failures when
p[-2] happens to be '\\' to failures when it happens to be '\0'.
rev.1.5 was confused about the trailing newline and other things.

I went back to rev.1.5 and fixed it.  The result is the same as
Keith Bostic's final version in PR 1356 except it loses more
gracefully for excessively long input lines.
1996-07-17 12:18:51 +00:00
..
apply Change an incorrect reference to the "-n" flag to "-#". 1996-03-11 03:09:00 +00:00
ar General -Wall warning cleanup, part I. 1996-07-12 19:08:36 +00:00
at Use ${ECHO} instead of echo' so that make -s' is fairly quiet. 1996-02-25 20:25:05 +00:00
banner Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
basename BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
biff BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
cal Localize it. 1996-01-24 22:50:24 +00:00
calendar Add yet one holiday 1996-06-07 15:53:44 +00:00
cap_mkdb BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
chat Document how chat logis it information via syslog. 1996-07-03 02:27:30 +00:00
checknr Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
chflags Set NOSHARED=true, having this binary static makes it much easier to 1995-07-24 01:44:17 +00:00
chpass Move setting of username to the correcft place; also initialize it. 1996-07-14 16:42:33 +00:00
cksum BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
cmp I don't like what they did to cmp(1) in 4.4 Lite; now it whines all 1994-08-20 11:14:07 +00:00
col Add setlocale LC_CTYPE 1995-10-24 06:15:05 +00:00
colcrt BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
colldef Bring in my changes for removing the pestilent obj links (unless you 1996-06-24 04:26:21 +00:00
colrm BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
column BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
comm BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
compile_et General -Wall warning cleanup, part I. 1996-07-12 19:08:36 +00:00
compress remove zopen, zopen is not part of libc. 1996-07-02 23:04:50 +00:00
cpp Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
ctags Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
cut Fix wrong separator output 1995-03-21 00:26:32 +00:00
devmenu Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
dig Merge bind-4.9.3-rel stuff ont main line... 1996-01-07 06:21:58 +00:00
dirname Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
dnsquery Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
du Restore the reference to quot(8). 1995-08-13 09:39:23 +00:00
ee Make it more explicit in the main help window that the magic to leave 1996-05-27 21:00:06 +00:00
env BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
error Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
expand BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
f2c Convert f2c.1 to mdoc format. 1996-05-15 20:27:10 +00:00
false BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fetch New man page for fetch(1). 1996-07-05 01:03:20 +00:00
fib Backout yacc changes. 1996-06-02 17:22:01 +00:00
file New magic file with more politically correct identification of objects 1996-07-05 19:26:52 +00:00
file2c This is a small little program used to execute a bad practice a clean way :-) 1995-01-29 00:49:57 +00:00
find Use strtoq() instead of strtol() so that large inums, and sizes can be 1996-04-07 12:58:13 +00:00
finger Allow the user to disable the use of T/TCP by setting the -T option. 1996-03-15 16:41:49 +00:00
fmt Fix a segfault which occurs when it gets an empty input line. 1996-04-22 18:37:22 +00:00
fold BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fpr BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
from Read from standard input if file name "-" is given. 1996-01-28 23:43:37 +00:00
fsplit Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
fstat Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
ftp 1. Remove SOCKS support (unneded with SOCKS v5 port) 1996-05-30 03:08:17 +00:00
gcore General -Wall warning cleanup, part I. 1996-07-12 19:08:36 +00:00
gencat Accept escaped quotes in msg catalogs. 1995-08-26 18:37:49 +00:00
getopt Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
gprof Print times/call in ns if hz >= 10e7. hz will be this large for high 1996-06-08 12:29:57 +00:00
gprof4 Implemented non-statistical kernel profiling. This is based on 1995-12-29 15:30:05 +00:00
head first check the count and then get 1996-02-26 22:46:36 +00:00
hexdump Correct some cross references and some path names. 1996-04-06 09:47:30 +00:00
host Guard against argument starvation. 1996-01-16 02:09:23 +00:00
id Fixed bug where 'id <user>' output the wrong group name (the user name 1995-08-28 10:23:58 +00:00
indent Fix a variety of minor typos and cross references in a bunch of 1996-01-20 07:29:11 +00:00
ipcrm Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
ipcs Drop privileges if we're not reading standard kernel file or namelist. 1996-05-30 02:18:44 +00:00
join Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
jot >Number: 917 1995-12-29 12:18:46 +00:00
kdump Run the headers through cpp -dM to find the #defines. The direct search 1996-06-23 17:05:10 +00:00
key Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
keyinfo Implement keyinfo(1) as a setuid Perl script, so /etc/skeykeys can 1996-04-26 21:35:11 +00:00
keyinit Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
killall Allow multiple process names to kill (i.e. 'killall ftpd inetd httpd') 1996-05-30 22:04:09 +00:00
ktrace Do always create ktrace.out with mode 0600, to prevent it from 1996-06-30 09:40:44 +00:00
kzip Support for using overlapping kzip kernels that are overwritten during 1995-10-06 02:42:15 +00:00
lam BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
last Localize time 1996-06-17 16:44:16 +00:00
lastcomm Add some options which makes lastcomm(1) a better debug tool. 1996-06-30 11:58:20 +00:00
ldd Updated to recent version of Paul K.'s shlib code. This code has better 1994-12-23 22:31:35 +00:00
leave BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
lex Whoops, forgot one FreeBSD specific change necessary for the lex .mk 1996-06-19 22:25:32 +00:00
locate Use '-fstype ufs' rather than '-fstype local' on the find command to avoid 1996-03-05 13:07:04 +00:00
lock Add dependencies on libraries to DPADD. Someday this should be done 1994-08-28 18:49:06 +00:00
logger BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
login Document login's use of /etc/login.access. 1996-07-03 01:20:09 +00:00
logname Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
look Make it works with 8bit charsets 1995-10-29 00:20:05 +00:00
lorder typo. 1996-06-10 15:55:48 +00:00
lsvfs Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
m4 This commit was generated by cvs2svn to compensate for changes in r16748, 1996-06-26 05:36:21 +00:00
mail Correct some cross references and some path names. 1996-04-06 09:47:30 +00:00
make Added a -V option to print make's idea of the value of a variable. 1996-07-17 11:02:43 +00:00
makewhatis New option -append: teach makewhatis to only add records, instead 1996-05-22 00:57:42 +00:00
mesg BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
mk_cmds General -Wall warning cleanup, part I. 1996-07-12 19:08:36 +00:00
mkdep $* -> $@ 1996-04-05 22:13:49 +00:00
mkfifo Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
mklocale Bring in my changes for removing the pestilent obj links (unless you 1996-06-24 04:26:21 +00:00
mkstr Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
modstat Setgid kmem not required. 1996-05-30 02:19:03 +00:00
more Document the CRLF bug 1996-01-22 03:48:47 +00:00
msgs Localize it 1995-12-13 12:54:26 +00:00
mt . cast the error and status registers properly to (unsigned short), 1996-02-22 00:33:35 +00:00
netstat Adding changes to ipfw and the kernel to support ip packet diversion.. 1996-07-10 19:44:30 +00:00
nfsstat From Lite2: rename fs to vfs. 1996-03-11 03:06:45 +00:00
nice Check the # of arguments, instead of silently dumping core. 1995-12-10 15:33:00 +00:00
nm General -Wall warning cleanup, part I. 1996-07-12 19:08:36 +00:00
nohup BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
pagesize Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
passwd Implement incremental passwd database updates. This is done by ading a '-u' 1996-07-01 19:38:50 +00:00
paste BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
pr Remove wrong LC_TIME env. usage 1995-10-24 05:56:45 +00:00
printenv BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
printf Correctly match the format flags and their descriptions. 1996-04-09 21:46:24 +00:00
quota Code clean up. Prototypes, casting, and parentheses around assignments 1996-06-15 01:01:02 +00:00
ranlib General -Wall warning cleanup, part I. 1996-07-12 19:08:36 +00:00
rdist Changed all sprintf() calls to snprintf(). 1996-07-12 04:00:15 +00:00
renice Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rev BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
rlogin Do a bounds check on the strcpy of environment variables onto the stack. 1996-07-15 16:29:03 +00:00
rpcgen General -Wall warning cleanup, part I. 1996-07-12 19:08:36 +00:00
rpcinfo Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rs The rs(1) command dumps core with the -s option (SIGSEGV) 1996-05-26 18:26:55 +00:00
rsh #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
rup Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
ruptime Change the errx(0,...) to errx(1,...) 1995-09-08 20:33:21 +00:00
rusers Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
rwall Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rwho Fix some incorrect locations in the FILES sections of some man pages. 1996-02-02 18:22:04 +00:00
sasc Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
script Delete bogus referneces to timezone code internal header file `tzfile.h', 1995-08-07 19:17:46 +00:00
sed Yet^2 another fix for the line continuation bug. 1996-07-17 12:18:51 +00:00
sgmlfmt Fix a few HTML 2.0 violations. 1996-05-15 17:05:17 +00:00
sgmls Bring in my changes for removing the pestilent obj links (unless you 1996-06-24 04:26:21 +00:00
shar Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
showmount Include queue.h in preparation of struct socket changes. 1996-03-11 13:00:12 +00:00
size BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
soelim BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
split This fixes 'split -l NNN foo'. As it stands split will 1995-07-07 08:23:52 +00:00
strings Use more complicated printable test to remove unnecessary 8bit chars 1995-12-28 16:31:23 +00:00
strip Trivial bugfix which occurs when DEBUG_FLAGS is defined. If DEBUG_FLAGS 1996-06-27 21:48:50 +00:00
su Make su a little less fascist about using Kerberos if it is not 1996-03-11 22:14:52 +00:00
symorder Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
systat Cosmetic fixes for drive names which are 4 chars long. 1996-06-11 16:18:58 +00:00
tail Another program depending on zero'ed malloc. 1995-10-10 10:03:48 +00:00
talk Cast to unsigned char instead of unsigned 1996-04-03 07:47:35 +00:00
tclsh bmaked tclsh 1996-06-26 17:52:19 +00:00
tconv Correct some manual page cross reference errors. E.g. su is a section 1996-02-02 00:26:12 +00:00
tcopy Make the counters unsigned longs so that tapes don't contain negative 1995-12-31 09:00:24 +00:00
tee BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
telnet Remove obsolete SOCKSv4 support 1996-05-30 03:09:18 +00:00
tftp Kill the (hopefully) last occurance of gets(3) in the base source tree. 1995-12-27 23:23:43 +00:00
time Close out PR#723: time -l dumps core 1995-10-28 16:05:32 +00:00
tip Bring in my changes for removing the pestilent obj links (unless you 1996-06-24 04:26:21 +00:00
tn3270 Bring in my changes for removing the pestilent obj links (unless you 1996-06-24 04:26:21 +00:00
touch PR # bin/274 1995-07-08 16:47:47 +00:00
tput Remove _set_ospeed, done in tgetent now. 1995-08-05 21:33:11 +00:00
tr Cast char's to (u_char) before passing them to isctype() functions. 1996-03-19 21:21:06 +00:00
true BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
tset Remove _set_ospeed, done in tgetent now. 1995-08-05 21:33:11 +00:00
tsort nitpicks. 1996-06-10 16:12:43 +00:00
tty BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ul Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
uname BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
unexpand BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
unifdef BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
uniq BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
units Added revised manpage submitted by the author of units. 1996-06-10 00:43:42 +00:00
unvis BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
users Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
uudecode Oops, restore missing piece of previous commit. 1996-04-25 18:14:11 +00:00
uuencode Minor correction regarding the last line of an uuencoded file. 1996-03-17 09:49:51 +00:00
vacation Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
vgrind Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
vi `~a'', `~i'' etc. cause vi to core dump 1996-03-03 15:47:43 +00:00
vis Add setlocale LC_CTYPE 1995-10-26 22:26:15 +00:00
vmstat Correct a typo. 1996-04-30 05:20:32 +00:00
w Do not print herror message, if w -n gethostname failed to be 100% 1996-06-17 20:07:44 +00:00
wall The talkd security hole can ealso be exploited by wall (and thus rwall). 1994-10-23 15:33:55 +00:00
wc Changed all per-file errors to warnings. Exit with a nonzero status of 1996-04-13 11:35:54 +00:00
what Add a reference to ident(1). 1996-06-30 16:06:44 +00:00
whereis A totally revamped whereis(1), bringing back all the functionality of 1996-06-15 12:29:48 +00:00
which This commit was generated by cvs2svn to compensate for changes in r13122, 1995-12-30 19:02:48 +00:00
who Add setlocale LC_TIME 1995-10-24 04:06:02 +00:00
whois Add support for SOCKS if enabled. 1996-04-23 06:01:10 +00:00
window Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
write Do unctrl in right way 1995-11-05 09:02:10 +00:00
xargs Make xargs take into account the bytes occupied by the environment. 1996-03-05 07:43:40 +00:00
xinstall Made strip failures fatal. This fixes PR 1328. 1996-06-23 12:59:18 +00:00
xlint General -Wall warning cleanup, part I. 1996-07-12 19:08:36 +00:00
xstr Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
yacc Install yacc with a link as byacc (and the man page). Some gnu autoconf 1996-01-08 09:20:16 +00:00
yes BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ypcat Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
ypmatch Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
ypwhich More XDR routine cleanups. These three programs should be the only 1995-12-15 03:39:46 +00:00
Makefile Add tclsh to Makefile. 1996-06-28 05:36:32 +00:00
Makefile.inc BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00