diff options
author | Jeremy Allison <jra@samba.org> | 2022-03-21 13:45:25 -0700 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-03-24 11:01:10 +0000 |
commit | 5242660aa14a66d5cdecf2b2916b6c44999f58ab (patch) | |
tree | 9140f4cf1d8b43d10e6a4cc5eb933f7825697f88 /source3/torture/proto.h | |
parent | 7e410e4883f2dcfe8f088a444f7ceca837c1d61e (diff) | |
download | samba-5242660aa14a66d5cdecf2b2916b6c44999f58ab.tar.gz |
s3: torture: Add 2 new tests SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO, SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-YES.
We currently allow setting the delete on close bit for
a directory containing only explicitly hidden/vetoed files
in the case where "delete veto files = yes" *and*
"delete veto files = no". For the "delete veto files = no"
case we should be denying setting the delete on close bit
when the client tries to set it (that's the only time Windows
looks at the bit and returns an error to the user). We
already do the in the dangling symlink case, we just
missed it in the !is_visible_fsp() case.
Mark SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO as knownfail
for now.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15023
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
(cherry picked from commit 5fe341d2d67afb7088edcb772b058c747ab341b1)
Diffstat (limited to 'source3/torture/proto.h')
-rw-r--r-- | source3/torture/proto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/torture/proto.h b/source3/torture/proto.h index d4db60f9dde..551c4ea80ac 100644 --- a/source3/torture/proto.h +++ b/source3/torture/proto.h @@ -122,6 +122,8 @@ bool run_smb2_quota1(int dummy); bool run_smb2_stream_acl(int dummy); bool run_list_dir_async_test(int dummy); bool run_delete_on_close_non_empty(int dummy); +bool run_delete_on_close_nonwrite_delete_yes_test(int dummy); +bool run_delete_on_close_nonwrite_delete_no_test(int dummy); bool run_chain3(int dummy); bool run_local_conv_auth_info(int dummy); bool run_local_sprintf_append(int dummy); |