s3: smbd: Allow a durable handle on a leased stat-open.
authorJeremy Allison <jra@samba.org>
Wed, 27 Apr 2022 21:08:13 +0000 (14:08 -0700)
committerJule Anger <janger@samba.org>
Mon, 9 May 2022 08:18:05 +0000 (08:18 +0000)
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

selftest/knownfail.d/durable-stat-open [deleted file]
source3/smbd/durable.c

diff --git a/selftest/knownfail.d/durable-stat-open b/selftest/knownfail.d/durable-stat-open
deleted file mode 100644 (file)
index 38eab23..0000000
+++ /dev/null
@@ -1 +0,0 @@
-^samba3.smb2.durable-open.stat-open\(nt4_dc\)
index a49bca6fd6192766bb90715e2f35fde0ba1cd95a..75c63c10ea240537b3929baeaf7b62bacb4bfe51 100644 (file)
@@ -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