Commit Graph

58 Commits

Author SHA1 Message Date
lukem c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
lukem fb103c5334 fix -Wsign-compare issues 2009-01-18 00:37:53 +00:00
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
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +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
wiz 02b5f03672 Remove some more old kerberos4 code. Simplify usage. 2006-03-23 23:49:07 +00:00
ginsbach 1a75882940 Fix Coverity issue 1236, negative return from read() passed to write()
as a large unsigned valued when read() is interrupted (errno == EINTR).
2006-03-17 21:52:41 +00:00
ginsbach 733e4b48e2 Add -4 and -6 to usage. 2005-03-11 03:20:23 +00:00
ginsbach 605994654d Support -4 and -6. Approved by christos. 2005-03-11 02:45:24 +00:00
ginsbach efcf0fc8a1 Whitespace fix-ups. 2005-01-13 23:02:28 +00:00
christos e4ff3093af remove unused variable 2004-10-16 07:36:08 +00:00
christos d9d5b79249 - Fix bug in port parsing code; s_port must be in network byte order.
- Factor out port parsing code and add error checking to it.
- WARNS=3
2004-10-16 02:03:54 +00:00
wiz 89fb08a9ec Bump date for removal of Kerberos option descriptions.
Remove dots at end of SEE ALSO.
2004-09-05 08:48:32 +00:00
manu bd3e12fe2f Kerberos support is broken in rcommands, thus making -K -k and -x options
unavailable. Remove theses options from the man pages (it won't be very
hard to bring them back if we fix kerberos one day)
2004-09-05 08:38:23 +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
itojun adeab29eca include des.h, not kerberosIV/des.h 2003-07-23 20:31:18 +00:00
wiz 21a565e27c Remove trailing whitespace. 2003-07-04 08:15:00 +00:00
joff 2c4a7474a0 use TCP_NODELAY 2003-06-14 22:43:31 +00:00
lukem 9014bdbce6 * Document $RCMD_CMD in environ(7).
* Cross-reference rcmd(1), rcmd(3), and environ(7) as appropriate.

Should fix [bin/21670] from Geoff Wing.
2003-05-26 10:18:39 +00:00
hubertf 34f17e9696 set s_proto properly
XXX this doesn't help with rsh insisting on a reserved port, which of course
	fails for non root users. and which only seems to happen when given
	ports >1023, funny enough. anyone? :/
2003-05-22 02:14:03 +00:00
itojun d83368eddb use strlcpy 2003-05-15 00:47:48 +00:00
wiz a405f5c87c Some mdoc fixes; drop some unnecessary whitespace. 2003-04-07 06:04:09 +00:00
hubertf fa337680d6 Add -p option to rsh and rlogin to allow specifying a non-standard port
number.
2003-04-07 01:46:41 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
itojun d118467d1c use strlcpy 2002-11-16 13:45:10 +00:00
lukem 2c16ea6f7e use NETBSDSRCDIR as appropriate 2002-09-19 11:31:21 +00:00
wiz 4cdb6cf0d7 Remove #ifdef __STDC__. De-__P() and ANSIfy. 2002-06-14 00:51:04 +00:00
wiz 2f40c45705 WARNS=2 2002-06-14 00:50:47 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz 81035f2228 kerberos(3) -> (8). Sort SEE ALSO. 2001-04-04 09:43:24 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
simonb 9b22175a26 Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile. 2000-10-18 00:24:18 +00:00
itojun 309d0c990b IPv6 support. (I thought I've committed these but was not yet) 2000-01-31 14:19:34 +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
tv b6573fcec0 Add xrefs to new hosts.equiv(5)/rhosts(5) man page. 1997-11-26 18:06:51 +00:00
lukem 8ba07ab0b3 use CPPFLAGS instead of CFLAGS 1997-10-24 09:00:17 +00:00
lukem e390551d3d fix up .Nm usage 1997-10-19 14:23:52 +00:00
lukem c2314d822a don't define WARNS=1 here 1997-10-19 14:23:26 +00:00
christos a8110bb91b Add prototype for orcmd. 1997-07-20 20:44:23 +00:00
christos 03507045bc Fix compiler warnings. 1997-07-06 19:31:28 +00:00
christos 47af6101e4 - PR/3727: Wolfgang Rupprecht: rsh takes 80% of the cpu
- rsh/rcmd combinations don't die sometimes, and spin in poll loops
    + detect errors from read/write etc, don't ignore them in some cases
    + use INFTIM instead of 0 in poll
    + detect invalid file descriptors in poll
    + use varargs/stdarg as appropriate
    + use posix signal calls
    + EWOULDBLOCK -> EAGAIN
1997-06-16 20:54:16 +00:00
mrg 66bc7bd651 fix PR#3710, reported by Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>.
- don't pass pw->pw_name into functions; make a copy.
1997-06-05 16:10:46 +00:00
mikel c1c7844b3d fix typo in SYNOPSIS, nuke duplicate RCSid 1997-06-05 06:35:24 +00:00
mrg 701a388310 rsh is not setuid anymore. 1997-06-02 11:58:13 +00:00
mrg 32b4c34ed2 rcmd(1) does not use argv[0] for hostname, like rsh does.
apply patch for pr#3695 from <hannken@ppp-jhi.eis.cs.tu-bs.de>.
1997-06-02 11:57:23 +00:00
mrg 04bd3838df add bits to allow this to be compiled as rcmd. 1997-05-26 14:29:36 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
mikel 2a8b3fc882 use FD_SETSIZE instead of manifest constant for select(2); from Rolf
Grossman in PR bin/3338.
1997-03-19 05:36:59 +00:00
mrg e3fdccd2ce oops, rsh is still setuid root for the moment. 1997-02-24 00:00:22 +00:00