1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r15028: Fix logic error checking valid args to POSIX lock

call.
Jeremy.
This commit is contained in:
Jeremy Allison 2006-04-10 23:32:05 +00:00 committed by Gerald (Jerry) Carter
parent 15f39a4c72
commit 44b0d856ae

View File

@ -1148,7 +1148,7 @@ BOOL cli_posix_lock(struct cli_state *cli, int fnum,
SMB_BIG_UINT offset, SMB_BIG_UINT len,
BOOL wait_lock, enum brl_type lock_type)
{
if (lock_type != READ_LOCK || lock_type != WRITE_LOCK) {
if (lock_type != READ_LOCK && lock_type != WRITE_LOCK) {
return False;
}
return cli_posix_lock_internal(cli, fnum, offset, len, wait_lock, lock_type);