If we can't find or load the kernel NLM support, don't just go ahead and

try to use it anyway.
This commit is contained in:
Doug Rabson 2008-04-10 12:54:53 +00:00
parent d4f2098b47
commit 3cba562fb9

View File

@ -178,8 +178,9 @@ main(int argc, char **argv)
if (modfind("nfslockd") < 0) {
if (kldload("nfslockd") < 0) {
fprintf(stderr, "Can't find or load kernel support for rpc.lockd - using non-kernel implementation\n");
} else {
kernel_lockd = TRUE;
}
kernel_lockd = TRUE;
} else {
kernel_lockd = TRUE;
}