mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: smbd: leases - losen paranoia check. Stat opens can grant leases.
https://bugzilla.samba.org/show_bug.cgi?id=11102 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
This commit is contained in:
parent
2d3db5e793
commit
cec2a38e97
@ -322,7 +322,8 @@ files_struct *file_find_dif(struct smbd_server_connection *sconn,
|
||||
}
|
||||
/* Paranoia check. */
|
||||
if ((fsp->fh->fd == -1) &&
|
||||
(fsp->oplock_type != NO_OPLOCK)) {
|
||||
(fsp->oplock_type != NO_OPLOCK &&
|
||||
fsp->oplock_type != LEASE_OPLOCK)) {
|
||||
DEBUG(0,("file_find_dif: file %s file_id = "
|
||||
"%s, gen = %u oplock_type = %u is a "
|
||||
"stat open with oplock type !\n",
|
||||
|
Loading…
Reference in New Issue
Block a user