summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2022-04-27 14:08:13 -0700
committerJule Anger <janger@samba.org>2022-05-09 08:18:05 +0000
commit25b7144283f7871ffba3c3adccbaa7313c4753ca (patch)
treecdea241e9b7bd51a50b26798b7062a8316b5a630
parentc7e2b4c3e90ca90be265ea6ee518e980ea6a4364 (diff)
downloadsamba-25b7144283f7871ffba3c3adccbaa7313c4753ca.tar.gz
s3: smbd: Allow a durable handle on a leased stat-open.
Remove knownfail. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15042 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (back-ported from commit fe7daae8c4692b99ff08d4e3e48034d59ddee245) Autobuild-User(v4-16-test): Jule Anger <janger@samba.org> Autobuild-Date(v4-16-test): Mon May 9 08:18:05 UTC 2022 on sn-devel-184
-rw-r--r--selftest/knownfail.d/durable-stat-open1
-rw-r--r--source3/smbd/durable.c4
2 files changed, 0 insertions, 5 deletions
diff --git a/selftest/knownfail.d/durable-stat-open b/selftest/knownfail.d/durable-stat-open
deleted file mode 100644
index 38eab23e6b8..00000000000
--- a/selftest/knownfail.d/durable-stat-open
+++ /dev/null
@@ -1 +0,0 @@
-^samba3.smb2.durable-open.stat-open\(nt4_dc\)
diff --git a/source3/smbd/durable.c b/source3/smbd/durable.c
index a49bca6fd61..75c63c10ea2 100644
--- a/source3/smbd/durable.c
+++ b/source3/smbd/durable.c
@@ -75,10 +75,6 @@ NTSTATUS vfs_default_durable_cookie(struct files_struct *fsp,
return NT_STATUS_NOT_SUPPORTED;
}
- if (fsp_get_io_fd(fsp) == -1) {
- return NT_STATUS_NOT_SUPPORTED;
- }
-
if (is_ntfs_stream_smb_fname(fsp->fsp_name)) {
/*
* We do not support durable handles