mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 10:53:39 +01:00
Consumers of nfslockdans() seems to think it should return 0 on success, so
make it so.
This commit is contained in:
parent
56ad27535a
commit
d32c3b7dce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143723
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user