#
292754 |
|
26-Dec-2015 |
pfg |
MFC r292454, r292455 ed(1): Prevent possible string overflows
Use strlcpy to guarantee NULL termination.
With hint from: imp, cem, ngie CID: 1007252
|
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
241720 |
|
19-Oct-2012 |
ed |
Fix warnings found by -Wmising-variable-declarations.
This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes.
- bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible.
|
#
228595 |
|
16-Dec-2011 |
dim |
Fix some obtuse fprintf tricks in bin/ed.
MFC after: 1 week
|
#
204711 |
|
04-Mar-2010 |
uqs |
ed(1): make WARNS=6 clean
Although argc and argv are never read after the longjmp is complete, gcc is not clever enough to see that and needlessly warns about it. So add volatile to silence the compiler.
Approved by: ed (the co-mentor, not ed(1))
|
#
161427 |
|
17-Aug-2006 |
imp |
while(0); -> while (0) in multiline macro
|
#
141578 |
|
09-Feb-2005 |
ru |
Sync program's usage() with manpage's SYNOPSIS.
|
#
140344 |
|
16-Jan-2005 |
charnier |
no need to have break; after return;
|
#
114433 |
|
01-May-2003 |
obrien |
Quiet warnings about copyright[].
|
#
102410 |
|
25-Aug-2002 |
charnier |
Replace various spellings with FALLTHROUGH which is lint()able
|
#
99109 |
|
30-Jun-2002 |
obrien |
Consistently use __FBSDID
|
#
98465 |
|
20-Jun-2002 |
jmallett |
We have a place for extern declarations of global variables in ed.h, do not use main() to do it locally.
|
#
90109 |
|
02-Feb-2002 |
imp |
o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o gc some #ifdef sun ... #endif code
Approved by: arch@, new style(9)
|
#
81220 |
|
06-Aug-2001 |
mike |
o Correctly define rcsid. o Add consts where appropriate. o Rename some variables that were shadowing global declarations. o Remove register storage-classes. o Make errmsg a const, so we can just set error messages instead of using sprintf/strcpy. o Set WARNS=2
Reviewed by: bde, des
|
#
78939 |
|
28-Jun-2001 |
dd |
Back out previous commit: it doesn't help anything since write_file(), which is also called from handle_hup(), uses stdio(3). Furthermore, this means that calling exit(3) (via quit()) there is required to flush the buffer write_file() was working on.
Submitted by: bde
|
#
78688 |
|
23-Jun-2001 |
dd |
Don't call exit(3) from a signal handler.
Obtained from: OpenBSD
|
#
77407 |
|
29-May-2001 |
imp |
Use PATH_MAX rather than MAXPATHLEN. Also fix a possible off by one error caused by the -1 being on the wrong side of the comparison. This would not cause an overflow, as near as I can tell, because we truncate later anyway. We'd just fail to get a diagnostic for 1024 and 1025 byte file names.
|
#
69247 |
|
27-Nov-2000 |
kris |
Constify
|
#
67183 |
|
16-Oct-2000 |
brian |
Include sys/types.h
|
#
59797 |
|
30-Apr-2000 |
joe |
Fixes a potential buffer overflow with 'ed [MAXPATHLEN + 1 characters]'.
Submitted by: Mike Heffner <spock@techfour.net> Submitted on: audit@freebsd.org
|
#
50471 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
38161 |
|
07-Aug-1998 |
dfr |
Silence some warnings when building on the alpha.
|
#
30233 |
|
08-Oct-1997 |
eivind |
make signal handlers errno safe
Obtained from: OpenBSD (file rev 1.11) - Theo de Raadt <deraadt@openbsd.org>
|
#
27963 |
|
07-Aug-1997 |
steve |
sccsid -> rcsid and fix some minor nits.
|
#
24348 |
|
28-Mar-1997 |
imp |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
#
22988 |
|
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
20420 |
|
14-Dec-1996 |
steve |
-Wall cleaning.
|
#
17516 |
|
11-Aug-1996 |
ache |
Localize it 8bit cleanup
|
#
8855 |
|
29-May-1995 |
rgrimes |
Remove trailing whitespace.
Reviewed by: phk
|
#
7165 |
|
19-Mar-1995 |
joerg |
You will find enclosed some changes to make gcc -Wall more happy in /usr/src/bin. Note that some patches are still needed in that directory.
I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however.
Submitted by: charnier@lirmm.fr (Philippe Charnier)
|
#
3044 |
|
24-Sep-1994 |
dg |
Added $Id$
|
#
1297 |
|
23-Mar-1994 |
alm |
use umask 077 for buffer file
|
#
1057 |
|
31-Jan-1994 |
alm |
Fixed range address bug: 1,2, == 2,2 not 2,. Overhauled the name space, reworked some modules and removed the obsolescent Addison-Wesley copyright.
|