Commit Graph

45 Commits

Author SHA1 Message Date
lukem 68b1911850 appease gcc -Wuninitialized 2005-06-02 06:54:02 +00:00
jonathan 52315e5149 Increase userspace (/usr/sbin/nfsd) limit on nfsd count from 20 to 1024.
Jason Thorpe suggests removing the limit altogether; anyone who needs
more than 1024 nfsds can still do "nfsd -n 1024" multiple times, and
this provides _some_ saftey-net against nfsd (issued by root) from
eating all the avaiable process slots.
2003-12-06 03:01:16 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun adeab29eca include des.h, not kerberosIV/des.h 2003-07-23 20:31:18 +00:00
mycroft 29ac8aa531 Fix PR 18391, from Geoff Wing. 2002-09-24 17:32:03 +00:00
mycroft aae6c28cf9 null commit 2002-09-23 12:44:34 +00:00
itojun f46e921837 poll.h, not sys/poll.h 2002-09-23 03:36:03 +00:00
mycroft 39f9b8328c Set fd of unused pollfd entries to -1. 2002-09-20 19:48:58 +00:00
mycroft c2748cb222 select() -> poll() 2002-09-20 06:02:25 +00:00
itojun c878544aa7 s/IPV6_BINDV6ONLY/IPV6_V6ONLY/ to follow changes made yesterday. 2001-10-16 01:51:26 +00:00
cgd d594ce939b comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
lukem e4099568d7 minor knf 2001-01-11 07:58:04 +00:00
lukem 7890e93e47 remove unnecessary ":" in openlog ident 2001-01-11 01:43:10 +00:00
fvdl 2a2d6dd2fc Update to use ti-rpc interface. Add -6 flag for IPv6 usage. This flag
will not cause an error if IPv6 is not available, so that things work
on v4 only kernels.
2000-06-09 00:05:02 +00:00
soren b1f625e524 Per the documented behaviour in the man page, default to
serving UDP requests if none of the -t or -u options are
given.

Previously, nfsd wouldn't actually do anything at all
if it was not told to do UDP and/or TCP, which could be
confusing.

Note that at least Solaris and IRIX default to both TCP
and UDP when nfsd is run without options. This might be
useful for NetBSD as well.

Fixes PR bin/7358.
1999-08-31 23:28:34 +00:00
thorpej 2712865930 Re-indent some of the NFSKERB code, to make the entire loop its in easier
to read.
1999-06-07 06:13:41 +00:00
thorpej 6be407523d Add a missing close bracket, in some currently-unused code. 1999-06-07 06:06:20 +00:00
lukem e1a9005721 fix comments 1999-03-26 07:15:23 +00:00
fvdl 4366964358 Do not block SIGTERM, so that nfsd exits gracefully at shutdown. 1999-01-25 10:12:33 +00:00
mrg 1cd9ed7799 minor KNF. 1998-07-12 09:13:27 +00:00
perry 75a6e03535 change includes to fix compiler warning 1998-02-03 04:55:59 +00:00
lukem 88e3ac566e use memcmp/memset/memmove instead of bcmp/bzero/bcopy 1997-10-18 11:02:19 +00:00
lukem c80b353465 WARNSify 1997-10-17 11:53:25 +00:00
kleink fde532da89 getopt(3) usage police: EOF is deprecated, check against -1. 1997-10-08 16:55:41 +00:00
fvdl d2200ee791 Add missing argument to 2 warnx() calls. From <msaitoh@spa.is.uec.ac.jp>,
PR 4086.
1997-09-05 10:52:10 +00:00
mycroft 6dbfdb34f7 Clear the sin_zero fields explicitly. 1996-09-16 17:22:04 +00:00
mycroft e174025c48 Reorder #includes. 1996-02-18 23:18:56 +00:00
fvdl f916611f33 Bring in NFSv3 code by Rick Macklem (from Lite2). 1996-02-18 11:58:24 +00:00
jtc 9f28755bff <sys/syslog.h> -> <syslog.h> 1995-05-28 05:31:01 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
mycroft b524577c42 Better patch for the previous. 1994-10-18 16:38:12 +00:00
mycroft 0e4ea99974 Don't wedge in an infinite loop if NFSSERVER is not configured. 1994-10-18 16:00:17 +00:00
mycroft 1b62a0967f Change process titles to be less redundant. 1994-10-18 14:12:55 +00:00
mycroft ea7b5d4ec6 Eliminate uses of some obsolete functions. 1994-09-23 14:26:58 +00:00
mycroft 625a6892f7 Update from 4.4-Lite, with local changes. 1994-06-08 19:27:32 +00:00
cgd d7e56d367a use setproctitle 1994-04-14 03:15:37 +00:00
deraadt b61a97ceeb should bzero automatic sockaddr's before use 1993-12-05 13:41:07 +00:00
cgd 62ae8cc163 use syslog to report errors Vernon Schryver (vjs@calcite.rhyolite.com) 1993-10-05 00:36:28 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 9bba98a520 update to use PS_STRINGS to set proc title 1993-06-02 05:01:49 +00:00
glass 0e0edb559f now you too can partake in this offense against any higher being there
may be.  basically to find out whether nfsserver support is in the kernel
earlier and thus avoid the loop problem, call nfssvc() with a bogus fd and
see whether you get a -1 return value or a SIGSYS...
1993-05-11 07:14:24 +00:00
glass cf30e49568 doesn't core when nfsserver support is not in kernel 1993-04-10 20:16:04 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00