Commit Graph

45 Commits

Author SHA1 Message Date
christos 64059bbbda PR/38017: Greg A. Woods: rpcinfo -s broke after coverity fixes. 2008-02-13 16:15:18 +00:00
tls 36a21907e2 Since Christos cleaned up the use of libc internals here, we can switch
these from USE_SSP to USE_FORT as they should be.
2007-05-28 18:12: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
christos 8231a12bf8 remove the rest of the libc cruft. 2007-05-26 23:00:22 +00:00
christos 26cf69237f This does not appear to need rpc_generic.c 2007-05-26 22:58:43 +00:00
christos a52c240b50 Coverity CID 2285: in the dump and dumpshort case, don't trash head so that
we can free the memory later.
2006-05-24 16:04:03 +00:00
christos a2170ce453 make sure that netid always points to an allocated string. Pointed out by
enami; thanks.
2006-04-05 12:57:29 +00:00
christos e0b8cfed06 Coverity CID 2287: Fix memory leak.
Plus:
	- change fprintf -> errx
	- remove unneeded casts
	- avoid err() shadowing
2006-04-03 15:21:26 +00:00
christos 002be29d1a Coverity CID 2290: Fix memory leak. 2006-04-02 03:33:55 +00:00
lukem 5c37c8a0a3 Cleanup use of 'host' when running 'rpcinfo -p'.
Appease other -Wuninitialized warnings.
2005-06-02 02:46:16 +00:00
lukem 7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
dsl d0ad315f4f Add (unsigned char) cast to ctype functions 2004-11-01 21:39:32 +00:00
simonb 9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +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
fvdl 3ee8341b2f Don't assign NULL to a char. 2003-10-21 02:24:59 +00:00
agc 44481e1ab2 Pull in <sys/param.h> explicitly. 2003-04-29 17:55:00 +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
tron 60f1df5f64 Don't include obsolete include file "rpc_com.h" any more. 2002-11-08 14:19:42 +00:00
lukem 5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
fair 37cef1f77e Minor nroff formatting fixes per PR 13800 2002-01-13 07:15:50 +00:00
wiz 7f53caa9d5 Drop a .Pp. 2001-12-08 19:12:46 +00:00
bjh21 b95ddc4862 Correct broken markup in description of -l.
Correct the second synopsis to match the description and the usage message.
2001-10-02 14:45:43 +00:00
bjh21 32261d4b9a Add .It for -d and -l as well. 2001-10-02 14:41:31 +00:00
bjh21 46dfe969fe Small formatting changes: Correctly mark the paragraph on -p with .It, and
don't put excess words in .Ar in one of the examples.
2001-10-02 14:38:09 +00:00
wiz c9d23d9780 netconfig(4) -> (5). Fix option section. Whitespace fixes. Sort SEE ALSO. 2001-04-04 09:42:49 +00:00
mjl b46ec3b29b getopt(3) returns -1 not EOF. 2000-10-04 20:09:04 +00:00
itojun 82cbc88d2a pull rpc/nettype.h in, for some of function prototype. checked by fvdl 2000-07-07 15:00:57 +00:00
fvdl 6ae2cb140a Fixup field with a bit. 2000-06-03 15:34:44 +00:00
fvdl b992cb1db9 Update rpcinfo to handle rpcbind version 3 and 4. Taken from Sun TI-RPC
distribution.
2000-06-02 23:19:38 +00:00
christos 20a2ed5105 revert previous cast. 1998-12-19 21:31:37 +00:00
christos 681ecbf381 a few casts, and char -> unsigned char 1998-12-19 21:27:40 +00:00
lukem d3fed48809 revert; we can't break the existing ABI and API 1998-02-12 03:52:12 +00:00
lukem 54305d4d11 use %d instead of %ld 1998-02-10 07:15:34 +00:00
lukem 79da0bed76 minor whitespace fixup 1998-02-08 13:39:09 +00:00
lukem 20e7acbab5 WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF 1997-10-19 14:20:43 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
mycroft bd3a2a6b4e Use inet_aton(), not inet_addr(). 1995-05-21 14:46:39 +00:00
cgd 9e97520947 specify man pages the new way. 1994-12-22 12:30:38 +00:00
cgd f771d07953 no more librpc 1993-10-08 02:34:16 +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 75ff3a90bd Add RCS identifiers. 1993-07-30 23:49:23 +00:00
jtc 1a9c05a062 convert manpages to -mandoc macros 1993-06-10 19:15:08 +00:00
mycroft 0b3fc2c11f Cleanup for GCC 2. 1993-04-19 07:39:27 +00:00
glass 26819b24df Added rpcinfo(8) 1993-04-03 00:52:27 +00:00