summaryrefslogtreecommitdiffstats
path: root/utils/statd/statd.c
diff options
context:
space:
mode:
authorhjl <hjl>2000-08-26 04:09:40 +0000
committerhjl <hjl>2000-08-26 04:09:40 +0000
commit5591654c71e7e2e5959c8718a7e880516b9081e8 (patch)
treebc3b971d883319f2f7aeeee67a58d066fa341398 /utils/statd/statd.c
parent764e46f5c5fe1a6e376f4cd350424f33afc9e838 (diff)
downloadnfs-utils-5591654c71e7e2e5959c8718a7e880516b9081e8.tar.gz
nfs-utils-5591654c71e7e2e5959c8718a7e880516b9081e8.tar.xz
nfs-utils-5591654c71e7e2e5959c8718a7e880516b9081e8.zip
2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
* utils/rquotad/rquotad.man, utils/statd/statd.man, utils/mountd/mountd.man: updated * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL) * utils/rquotad/Makefile: fix comment * support/misc/tcpwrapper.c (logit): added comment about waiting for the children after fork() * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving zombies behind (from logit()'s fork) * utils/rquotad/rquota_svc.c (main): ditto * utils/statd/statd.c (main): ditto * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG to check_default instead of 0, for prognum * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG to check_default instead of 0, for prognum * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if HAVE_TCP_WRAPPER is defined. (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is defined. Reject an RPC call if check_default () fails.
Diffstat (limited to 'utils/statd/statd.c')
-rw-r--r--utils/statd/statd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/statd/statd.c b/utils/statd/statd.c
index d07a260..0c3b5e9 100644
--- a/utils/statd/statd.c
+++ b/utils/statd/statd.c
@@ -36,7 +36,7 @@ sm_prog_1_wrapper (struct svc_req *rqstp, register SVCXPRT *transp)
{
/* remote host authorization check */
if (!check_default("statd", svc_getcaller(transp),
- rqstp->rq_proc, (u_long) 0)) {
+ rqstp->rq_proc, SM_PROG)) {
svcerr_auth (transp, AUTH_FAILED);
return;
}
@@ -104,6 +104,8 @@ main (int argc, char **argv)
signal (SIGHUP, killer);
signal (SIGINT, killer);
signal (SIGTERM, killer);
+ /* WARNING: the following works on Linux and SysV, but not BSD! */
+ signal(SIGCHLD, SIG_IGN);
for (;;) {
pmap_unset (SM_PROG, SM_VERS);