summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2005-03-16 23:55:48 +0000
committercognet <cognet@FreeBSD.org>2005-03-16 23:55:48 +0000
commite71ce99b94a4a7a3a89698ab14cf849cedb25d98 (patch)
tree54d5e54548348f1cb126e822b8e8ef9797ed9c3d /usr.sbin/rpc.lockd
parent5b7d321e530cb59228d6712086da3e75054e775a (diff)
downloadFreeBSD-src-e71ce99b94a4a7a3a89698ab14cf849cedb25d98.zip
FreeBSD-src-e71ce99b94a4a7a3a89698ab14cf849cedb25d98.tar.gz
Consumers of nfslockdans() seems to think it should return 0 on success, so
make it so.
Diffstat (limited to 'usr.sbin/rpc.lockd')
-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