X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fmount_dispatch.c;h=ba6981defd9456c9621e08b2074ce947a45860c0;hp=e87831a6969412c2abe450dda8afffaf1ed7f811;hb=014e00dfaea0efc92150e2aedc5ca43aa337545e;hpb=5591654c71e7e2e5959c8718a7e880516b9081e8 diff --git a/utils/mountd/mount_dispatch.c b/utils/mountd/mount_dispatch.c index e87831a..ba6981d 100644 --- a/utils/mountd/mount_dispatch.c +++ b/utils/mountd/mount_dispatch.c @@ -4,7 +4,9 @@ * Copyright (C) 1995 Olaf Kirch */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include +#endif #ifdef HAVE_TCP_WRAPPER #include "tcpwrapper.h" @@ -71,8 +73,7 @@ mount_dispatch(struct svc_req *rqstp, SVCXPRT *transp) #ifdef HAVE_TCP_WRAPPER /* remote host authorization check */ - if (!check_default("mountd", svc_getcaller(transp), - rqstp->rq_proc, MOUNTPROG)) { + if (!check_default("mountd", nfs_getrpccaller(transp), MOUNTPROG)) { svcerr_auth (transp, AUTH_FAILED); return; }