summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/rpc.lockd/kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c
index b937713..416b77d 100644
--- a/usr.sbin/rpc.lockd/kern.c
+++ b/usr.sbin/rpc.lockd/kern.c
@@ -83,7 +83,7 @@ nfslockdans(int vers, struct lockd_ans *ansp)
{
ansp->la_vers = vers;
- return (write(devfd, ansp, sizeof *ansp));
+ return (write(devfd, ansp, sizeof *ansp) <= 0);
}
/*
OpenPOWER on IntegriCloud