Commit Graph

23 Commits

Author SHA1 Message Date
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
dsl 25b3737cd3 isupper(x) can be true for x in [128..255], but since tolower(x) is required
to return x if it cannot be translated we don't need the isupper() test.
2004-10-30 17:25:34 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
kleink 6f7054a583 Try $LOGNAME first, then fall back to $USER. 2001-11-15 14:16:11 +00:00
mjl 5f98a040cc Use appropriate errx/err at the right places.
Use snprintf() when dealing with user supplied arg.
2001-07-01 00:09:46 +00:00
mjl e267ac2359 Oops, errx() not err(). 2000-09-08 13:14:33 +00:00
mjl 680cd1fdaa Un-__P, ANSI- and constify. 2000-09-08 13:11:03 +00:00
mjl f9e3c9099b Use err() 2000-09-08 13:06:13 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
christos 9794a7e065 char -> unsigned char 1998-12-19 16:37:28 +00:00
lukem e207462d6e WARNSify, fix .Nm usage 1997-10-18 15:05:40 +00:00
lukem 906b60f5e0 getopt returns -1 not EOF 1997-10-18 14:49:41 +00:00
jtc 7642736cd5 Sync with 4.4lite2 1995-09-01 01:29:39 +00:00
deraadt 9e809275c9 mail honours $USER, and from should too. 1994-11-24 14:53:10 +00:00
deraadt b175f116e1 handle `from user' without croaking 1994-09-15 02:02:00 +00:00
deraadt 0479ea62bc use the value of $MAIL (if set) as the default mailbox (like SunOS)
from christos@deshaw.com (Christos Zoulas)
1994-01-25 08:43:38 +00:00
jtc 7e06b2a1e2 Fix spelling errors. 1994-01-11 02:21:43 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00