s4:torture/smb2/streams: try to rename basefile while is has open streams
authorRalph Boehme <slow@samba.org>
Sat, 26 May 2018 14:07:14 +0000 (16:07 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 12 Jul 2018 11:10:25 +0000 (13:10 +0200)
commit36972fd61d4bf3e1b24575f8ec54610d32d815e1
treea5f27d0822562a87affba39cfb51f0b6dfd948ab
parent00b001b0ce9b606eb4cc8f93747ee70fd0eccfa3
s4:torture/smb2/streams: try to rename basefile while is has open streams

This tests the following:

- create a file with a stream
- open the the stream and keep it open
- on a second connection, try to rename the basefile, this should fail
  with NT_STATUS_ACCESS_DENIED

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13451

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 00d19bdab15102083b8ba395ede161824c898be1)
selftest/knownfail.d/samba3.smb2.streams [new file with mode: 0644]
source4/torture/smb2/streams.c