[PATCH] Fix bug #10431 - STATUS_NO_MEMORY response from Query File Posix Lock request
jra at samba.org
Wed Feb 26 17:40:21 MST 2014
Hi Volker & Jeff,
Here's a fix for master:
brl_get_locks_readonly() currently returns NULL when it can't
find any byte range locks on the file. This is an error - it
should return a valid struct byte_range_lock containing num_locks == 0
so it can be cached.
Returning NULL when there are no locks causes POSIX lock
tests to fail returning NT_STATUS_NO_MEMORY (as it thinks
it can't allocate the struct) instead of NT_STATUS_OK.
Please review - it fixes the POSIX lock tester Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1862 bytes
Desc: not available
More information about the samba-technical