Commit Graph

149 Commits

Author SHA1 Message Date
maya e814216d15 Unifdef compatibility for broken realloc.
No binary change
2019-01-04 19:13:58 +00:00
christos 8adf28c539 Prevent shell execution also in the 'r ! dobad' case, pointed out by
Martijn van Duren, thanks!

XXX: pullup-8
2018-06-18 14:56:24 +00:00
wiz 883cee82b3 Sort option descripts, fix markups, fix typos. 2018-04-09 06:57:01 +00:00
wiz 051f873718 New sentence, new line. Sort SEE ALSO. Remove Xr to non-existing man page. 2018-04-09 06:54:47 +00:00
snj 107d499d1f fix date 2018-04-08 06:01:04 +00:00
christos c02518ebec add -S to disable ! commands. 2018-04-05 18:44:57 +00:00
dholland 32cded6cc9 Typos. 2018-02-08 09:05:16 +00:00
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
riastradh ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
christos fa7bb8d201 PR/50879: David Binderman: remove redundant code. 2016-03-02 19:11:28 +00:00
christos ded9763f6b PR/50734: David Binderman: check bounds before dereferencing. 2016-02-01 17:34:00 +00:00
joerg 09dfb13f83 Be explicit about what is negated. 2015-08-28 11:29:48 +00:00
christos e8c3f5b299 PR/48692: Henning Petersen: Missplaced paranthesis in bin/ed gbl.c and main.c 2014-03-31 12:55:46 +00:00
joerg f18d1e6774 Use __printflike. 2014-03-25 17:23:37 +00:00
dholland a3542600fb sprintf considered harmful 2014-03-23 05:06:42 +00:00
joerg 9e69720425 Fix violations of the sequence point rule. 2013-06-28 15:04:35 +00:00
joerg 5bb1ddccc2 Use __dead 2011-08-29 14:51:17 +00:00
christos 8151f99568 use const char [] for format. 2011-08-21 08:40:31 +00:00
christos 850af422f9 eliminate non-literal format string. 2011-08-14 09:38:05 +00:00
joerg a86027b1a0 Conditionalize printfs instead of using conditional empty format
strings.
2011-05-23 23:13:10 +00:00
riz a9adb2c9b0 If the definition of a static function is #if DES, the declaration
of it should be too.  Fixes build of ed where MKCRYPTO=no.
2010-06-09 19:20:18 +00:00
joerg fd71eb70d7 Quote punctation. 2010-05-14 02:09:58 +00:00
dholland c314d41680 remove unused global variable 2009-07-26 02:07:12 +00:00
dholland 85d0adbcff sprinkle static in this file 2009-07-26 02:06:37 +00:00
dholland aa92b1b91b Remove the need for -Wno-pointer-sign. Does not change the output .o file. 2009-07-26 01:58:20 +00:00
ginsbach 389bb545f4 Make sure that buffer is NULL terminated when input to strip_escapes() is
too long.  (Thanks jnemeth!)
2009-06-10 04:16:53 +00:00
ginsbach 9cd62c77f5 Fix potential buffer overflow in filename escape processing
'ed [MAXPATHLEN + 1 characters]'.  [From FreeBSD]
2009-06-10 03:24:27 +00:00
joerg 70ea994ea4 Avoid .Xo/.Xc. Fix quoting of commands to give the intended effect. 2009-03-26 21:34:11 +00:00
gmcgarry 3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
lukem 2fe2731d3f Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
gmcgarry 686556951e Add test for HAVE_PCC with HAVE_GCC which turn off compiler warning flags. 2008-07-12 12:29:42 +00:00
msaitoh 548cdc0050 s/intialized/initialized/ 2007-03-17 13:51:46 +00:00
christos 88e26c5a37 sprinkle volatile 2006-10-15 23:57:21 +00:00
christos 460f8d8a0c PR/33699: Kevin Massey: use strlcpy to prevent stack overflows. 2006-06-11 16:15:20 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
rumble 88f1652fe8 Handle asprintf returning NULL. 2006-03-17 14:37:14 +00:00
christos 6310b59691 sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
rillig cb5d6856d5 Fixed another instance of isspace(char). 2005-05-23 08:01:17 +00:00
rillig 4f6457e756 Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.
2005-04-19 20:14:29 +00:00
xtraeme d33a7206d5 Kill __P(), use ANSI function declarations. 2005-02-17 16:29:26 +00:00
lukem 857ab1bdd0 use ${HOST_SH} instead of /bin/sh 2003-10-26 03:50:07 +00:00
wiz bbbbcbe44f Fix typos in comments. From Jared Yanovich via jmc@openbsd. 2003-10-19 01:52:45 +00:00
wiz 29119d0e3b Reinstate paragraph about -E, sort option descriptions, and bump date for -E addition. 2003-09-08 13:13:08 +00:00
wiz 7554e5998d Some more fixes: sort sections, escape some stuff for HTML output. 2003-09-08 13:02:59 +00:00
wiz 25eb7d566d Improved version of OpenBSD's mdoc'ed version of ed(1) (v1.42). 2003-09-08 12:58:41 +00:00
itojun 3efe781f15 plug memory leak. PR bin/22694 2003-09-05 20:16:50 +00:00
agc b5b2954259 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
wiz dcc13ddb7d Some grammar and punctuation fixes from jmc@openbsd. 2003-05-01 13:50:58 +00:00
lukem 6d7ad1a836 clear errno before strtol() if we're going to test it for ERANGE afterwards 2003-04-17 02:54:07 +00:00
perry 18dec071dc occurences->occurrences, from Igor Sobrado in PR 19670 2003-03-29 18:09:03 +00:00