Home | History | Annotate | Download | only in ed
History log of /src/bin/ed/main.c
RevisionDateAuthorComments
 1.31  17-Sep-2025  rillig ed: fix search-and-replace typos in comments, clean up whitespace

No binary change.
 1.30  18-Jun-2018  christos branches: 1.30.2;
Prevent shell execution also in the 'r ! dobad' case, pointed out by
Martijn van Duren, thanks!

XXX: pullup-8
 1.29  05-Apr-2018  christos add -S to disable ! commands.
 1.28  02-Mar-2016  christos branches: 1.28.8; 1.28.14;
PR/50879: David Binderman: remove redundant code.
 1.27  31-Mar-2014  christos branches: 1.27.4; 1.27.6; 1.27.10;
PR/48692: Henning Petersen: Missplaced paranthesis in bin/ed gbl.c and main.c
 1.26  23-Mar-2014  dholland sprintf considered harmful
 1.25  21-Aug-2011  christos branches: 1.25.2; 1.25.8;
use const char [] for format.
 1.24  14-Aug-2011  christos eliminate non-literal format string.
 1.23  23-May-2011  joerg Conditionalize printfs instead of using conditional empty format
strings.
 1.22  10-Jun-2009  ginsbach Make sure that buffer is NULL terminated when input to strip_escapes() is
too long. (Thanks jnemeth!)
 1.21  10-Jun-2009  ginsbach Fix potential buffer overflow in filename escape processing
'ed [MAXPATHLEN + 1 characters]'. [From FreeBSD]
 1.20  20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.19  16-Oct-2006  christos branches: 1.19.18;
sprinkle volatile
 1.18  11-Jun-2006  christos PR/33699: Kevin Massey: use strlcpy to prevent stack overflows.
 1.17  26-Jun-2005  christos sprinkle a little const, and now everything compiles with WARNS=3
 1.16  23-May-2005  rillig Fixed another instance of isspace(char).
 1.15  19-Apr-2005  rillig Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.
 1.14  17-Feb-2005  xtraeme Kill __P(), use ANSI function declarations.
 1.13  23-Jan-2002  atatat Add a -E flag to ed(1) and sed(1) so that they can use extended
regular expressions instead of just basic regular expressions.
 1.12  04-Apr-2000  thorpej Back out the incorrect change in revision 1.11 of main.c, and actually
fix the problem it meant to address by putting extern declarations into
ed.h.
 1.11  01-Apr-2000  mjl Correct data type mismatch of "rows" with extern declaration. Possible
LP64 issue (long vs int). Fixes OpenBSD PR/1167 :)
 1.10  04-Nov-1998  christos - add termios.h for winsize
- unsigned cast for is*()
 1.9  28-Jul-1998  mycroft Be more retentive about use of NOTREACHED and noreturn.
 1.8  28-Jul-1998  mycroft Delint.
 1.7  14-Sep-1997  lukem getopt returns -1 not EOF
 1.6  23-Jul-1997  augustss Fix paren typo so `ed' can edit files again.
 1.5  20-Jul-1997  christos Avoid the last warnings and add WARNS=1
 1.4  20-Jul-1997  thorpej - Use __RCSID() and __COPYRIGHT().
- Fix (all but two) compiler warnings.
 1.3  21-Mar-1995  cgd convert to new RCS id conventions.
 1.2  23-Dec-1994  cgd be careful with pointer types.
 1.1  20-Feb-1994  alm `s3' applies the last substitution to the 3rd (or nth) match.
Split up the code to several files.
 1.19.18.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.25.8.1  19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.25.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.27.10.1  09-Apr-2018  martin Pull up following revision(s) (requested by christos in ticket #1596):
bin/ed/ed.1: revision 1.32
bin/ed/main.c: revision 1.29
usr.bin/patch/pch.c: revision 1.29
Pass -S to ed(1) so that patches containing ! commands don't run commands.
Real cause of CVS-2018-0492:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667)
add -S to disable ! commands.
 1.27.6.1  09-Apr-2018  martin Pull up following revision(s) (requested by christos in ticket #1596):
bin/ed/ed.1: revision 1.32
bin/ed/main.c: revision 1.29
usr.bin/patch/pch.c: revision 1.29
Pass -S to ed(1) so that patches containing ! commands don't run commands.
Real cause of CVS-2018-0492:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667)
add -S to disable ! commands.
 1.27.4.1  09-Apr-2018  martin Pull up following revision(s) (requested by christos in ticket #1596):
bin/ed/ed.1: revision 1.32
bin/ed/main.c: revision 1.29
usr.bin/patch/pch.c: revision 1.29
Pass -S to ed(1) so that patches containing ! commands don't run commands.
Real cause of CVS-2018-0492:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667)
add -S to disable ! commands.
 1.28.14.2  25-Jun-2018  pgoyette Sync with HEAD
 1.28.14.1  07-Apr-2018  pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
 1.28.8.2  22-Jun-2018  martin Pull up following revision(s) (requested by christos in ticket #887):

bin/ed/main.c: revision 1.30

Prevent shell execution also in the 'r ! dobad' case, pointed out by
Martijn van Duren, thanks!

XXX: pullup-8
 1.28.8.1  08-Apr-2018  snj Pull up following revision(s) (requested by christos in ticket #699):
bin/ed/ed.1: 1.32-1.33
bin/ed/main.c: 1.29
usr.bin/patch/pch.c: 1.29
Pass -S to ed(1) so that patches containing ! commands don't run commands.
Real cause of CVE-2018-0492:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667)
--
add -S to disable ! commands.
--
Fix date.
 1.30.2.2  21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.30.2.1  21-Apr-2020  martin Sync with HEAD

RSS XML Feed