From: Neil Brown Date: Fri, 23 Mar 2007 01:36:36 +0000 (+1100) Subject: statd - fix bug so statd can talk to kernel again. X-Git-Tag: nfs-utils-1-1-0-rc1~16 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=03534540a25fe4c0679928a2f3f023e596c78dc4;p=nfs-utils.git statd - fix bug so statd can talk to kernel again. We need to call statd_get_socket before dropping privileges so that we have a privileged port. We use to do that when initialising notification as the same socket was used for reboot notication as for callbacks to the kernel. Now it is a different socket.. --- diff --git a/utils/statd/statd.c b/utils/statd/statd.c index 22d5deb..6c5dbde 100644 --- a/utils/statd/statd.c +++ b/utils/statd/statd.c @@ -476,6 +476,8 @@ int main (int argc, char **argv) waitpid(pid, NULL, 0); } + /* Make sure we have a privilege port for calling into the kernel */ + statd_get_socket(); for (;;) { pmap_unset (SM_PROG, SM_VERS);