From d32c3b7dcefa78525e7253f78c754f99bb06f411 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 16 Mar 2005 23:55:48 +0000 Subject: [PATCH] Consumers of nfslockdans() seems to think it should return 0 on success, so make it so. --- usr.sbin/rpc.lockd/kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c index b9377132d4b6..416b77dc2347 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); } /*