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)
committerJeremy Allison <jra@samba.org>
Wed, 30 May 2018 17:10:25 +0000 (19:10 +0200)
commit00d19bdab15102083b8ba395ede161824c898be1
tree990f253ba6508dfc78d7b292985ce115f3f60235
parentaa096ab70a466388a9947f73a525b2dcbb9821e5
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>
selftest/knownfail.d/samba3.smb2.streams [new file with mode: 0644]
source4/torture/smb2/streams.c