plock->context.smblctx = 0xFFFFFFFFFFFFFFFFLL;
if (errno_ret == EACCES || errno_ret == EAGAIN) {
- status = NT_STATUS_FILE_LOCK_CONFLICT;
+ status = NT_STATUS_LOCK_NOT_GRANTED;
goto fail;
} else {
status = map_nt_error_from_unix(errno);
TALLOC_FREE(tp);
/* Remember who blocked us. */
plock->context.smblctx = curr_lock->context.smblctx;
- return NT_STATUS_FILE_LOCK_CONFLICT;
+ return NT_STATUS_LOCK_NOT_GRANTED;
}
/* Just copy the Windows lock into the new array. */
memcpy(&tp[count], curr_lock, sizeof(struct lock_struct));
TALLOC_FREE(tp);
/* Remember who blocked us. */
plock->context.smblctx = curr_lock->context.smblctx;
- return NT_STATUS_FILE_LOCK_CONFLICT;
+ return NT_STATUS_LOCK_NOT_GRANTED;
}
/* Work out overlaps. */
if (errno_ret == EACCES || errno_ret == EAGAIN) {
TALLOC_FREE(tp);
- status = NT_STATUS_FILE_LOCK_CONFLICT;
+ status = NT_STATUS_LOCK_NOT_GRANTED;
goto fail;
} else {
TALLOC_FREE(tp);