Commit Graph

45 Commits

Author SHA1 Message Date
lukem ee76095327 Fix -Wsign-compare issue 2009-04-14 09:53:08 +00:00
lukem 654f9595de Default for -n is 100 not 99. 2008-04-05 04:02:06 +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
he c8a9612d27 Initialize pw to placate -Wuninitialized for sh3. 2005-09-20 15:48:17 +00:00
wiz f38e8b27b1 Sync usage with man page. 2005-09-19 22:43:21 +00:00
elad f36ecf9e54 Document -k and -p.
Noted by wiz@, perry@.
2005-09-19 15:12:09 +00:00
elad f6deb21161 Add -k key and -p password.
Slightly modified diff from V. Hari.
PR/15736.
2005-09-18 21:50:20 +00:00
wiz 2e504179eb Mark up authors with .An. From YOMURA Masanori in private mail. 2005-09-11 23:26:14 +00:00
wiz 7b04d43e4c Document -x, from Jeff Ito in PR 28494.
While here, sort options and fix various minor stuff.
2004-12-01 12:01:05 +00:00
dsl e219d781d7 Add (unsigned char) cast to ctype functions 2004-11-03 20:10:08 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
agc a8d6388e6f Add NetBSD RCS Ids. 2003-06-23 13:05:47 +00:00
itojun 4005e1b9e9 use strl* 2003-05-17 21:05:10 +00:00
itojun 0cf92ab036 use strlcpy 2002-11-16 05:24:44 +00:00
lukem 5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
christos d6f865b38c use LOGIN_NAME_MAX not UT_NAMELEN.
remove utmp.h
2002-08-01 22:43:34 +00:00
itojun f51456c273 err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
itohy f3e8a130b8 Make sure using stdin/stdout/stderr is safe
after opening any file.
2002-04-23 06:10:42 +00:00
wiz f1bde32520 s/necesary/necessary/ 2001-07-24 16:43:02 +00:00
wiz 6bccbdb8f5 Fix date, and remove a trailing dot in .Nd. 2001-04-09 12:35:00 +00:00
christos 4a3d2be88b make sure that me is null terminated. 2001-03-24 18:18:42 +00:00
thorpej c48cedd0f4 Filter out non-alpha-numeric characters from the default
seed.  No point in generating one that skey(1) will reject.
2000-07-28 19:19:23 +00:00
mjl 29494f79fb Update manpage to new options. 2000-07-07 13:59:40 +00:00
mjl 5bae709009 Bring s/key closer to RFC2289 conformance by pulling in changes
from OpenBSD to make use of different hash functions possible.
Also ANSIfy, make it use getopt instead of home-grown arg parsing,
and clean up a bit.
2000-07-07 00:18:29 +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
erh fa45851f9b Add missing .El line. 1999-03-10 05:14:51 +00:00
ross ac2903e059 Missing .El. 1999-03-09 03:29:51 +00:00
christos f6d2541fc5 portability in printf args.
char -> unsigned char
1998-12-19 22:18:00 +00:00
mycroft 48625216b5 const poisoning. 1998-07-26 22:21:02 +00:00
mrg ad3390c64d nul-terminated strftime buffer. remove duplicate call to setpriority. 1998-07-06 14:54:05 +00:00
mrg 2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
mycroft 82b4b8d328 Nuke trailing comma in SEE ALSO section. 1997-11-01 06:21:01 +00:00
lukem 8ba07ab0b3 use CPPFLAGS instead of CFLAGS 1997-10-24 09:00:17 +00:00
lukem adb472c43d WARNSify, fix .Nm usage, xref all s/key related programs 1997-10-19 23:24:42 +00:00
mrg a4424f42c3 use strncpy. 1997-02-11 09:25:24 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
jtc 6b7d6d2b4d remove trailing comma from SEE ALSO section; PR #1194 1995-07-07 22:24:09 +00:00
pk e0431ba116 #include <err.h> & <ctype.h>; remove extraneous declarations. 1995-06-05 19:50:48 +00:00
cgd f752024932 stdlib.h, RCS ID format 1994-12-24 17:42:04 +00:00
cgd 9e97520947 specify man pages the new way. 1994-12-22 12:30:38 +00:00
deraadt cf37c3ba27 cleanup 1994-08-30 06:09:18 +00:00
deraadt 6f91f0628a better seed initialization 1994-05-30 04:52:26 +00:00
cgd a01b12f71c reorg include order, also add <sys/param.h> for MAXHOSTNAMELEN 1994-05-30 03:54:37 +00:00
deraadt c2307c152b fix bug 266 1994-05-29 22:38:39 +00:00
deraadt 8b02aa3939 add skey & friends 1994-05-24 06:47:42 +00:00