diff options
author | cognet <cognet@FreeBSD.org> | 2005-03-16 23:55:48 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2005-03-16 23:55:48 +0000 |
commit | e71ce99b94a4a7a3a89698ab14cf849cedb25d98 (patch) | |
tree | 54d5e54548348f1cb126e822b8e8ef9797ed9c3d /usr.sbin/rpc.lockd/kern.c | |
parent | 5b7d321e530cb59228d6712086da3e75054e775a (diff) | |
download | FreeBSD-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/kern.c')
-rw-r--r-- | usr.sbin/rpc.lockd/kern.c | 2 |
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); } /* |