]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/statd.c
statd - fix bug so statd can talk to kernel again.
[nfs-utils.git] / utils / statd / statd.c
index 22d5deb51ecfb38afbb9650a3ae0149e0726998a..6c5dbde419ed6d932b569d740669efecc10467c0 100644 (file)
@@ -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);