summaryrefslogtreecommitdiffstats
path: root/source3/smbd/files.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2015-02-18 11:49:27 -0800
committerJeremy Allison <jra@samba.org>2015-02-19 20:42:07 +0100
commitcec2a38e971ac83260f3a9a5c4ac7095f8d23d65 (patch)
tree3516eda6739d26bfb8eae787264400988051a41a /source3/smbd/files.c
parent2d3db5e7930af9dd2a70727b2f2828bd73a1ec3b (diff)
downloadsamba-cec2a38e971ac83260f3a9a5c4ac7095f8d23d65.tar.gz
samba-cec2a38e971ac83260f3a9a5c4ac7095f8d23d65.tar.xz
samba-cec2a38e971ac83260f3a9a5c4ac7095f8d23d65.zip
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>
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r--source3/smbd/files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 19896a789d..5b3741bb86 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -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",