Commit Graph

59 Commits

Author SHA1 Message Date
dholland 98ce70f09e passes WARNS=5, don't set it to 4. 2013-08-21 21:05:29 +00:00
christos 00ce62b685 0 == local 2013-05-24 23:09:45 +00:00
christos d5f24c2bef Simplify previous: instead of polluting the whole code with extra arguments
and dealing with byteorder, do the whole thing in where we need it.
2013-05-08 00:34:50 +00:00
christos 16c1b372e4 print the port where the server is listening when displaying status. 2013-05-07 21:41:51 +00:00
wiz 309c96cfa6 Full list of changes:
- remove spurious white space;
- punctuation;
- new sentence, new line;
- decapitalization;
- for the non-superuser example command lines, use a consistent
  shell prompt character.

From Bug Hunting.
2012-05-13 15:50:41 +00:00
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
joerg 6ff5354c03 Fix usage() to actually not return 2011-05-24 12:42:25 +00:00
christos c93c31d5d2 simplify 2011-02-10 00:05:52 +00:00
dholland c7df2d80f4 Fix broken build (hi Christos!) 2011-02-09 06:26:48 +00:00
christos e95e36baec - WARNS ?= 4
- fix memory leaks
- fix error printing
- pass lint
- KNF
- constify
- ansify
2011-02-08 22:16:58 +00:00
drochner 884c70cd50 ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +00:00
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 354659f544 fix -Wshadow issues 2009-04-13 07:04:54 +00:00
joerg 910b7ec5c5 Add missing .Os, improve column size. 2009-04-08 13:28:16 +00:00
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