s4:torture/smb2/streams: try to rename basefile while is has open streams
commit7d0b1fd82834cd04c5a029e378c8d60142e24ed6
authorRalph Boehme <slow@samba.org>
Sat, 26 May 2018 14:07:14 +0000 (26 16:07 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 12 Jul 2018 11:11:21 +0000 (12 13:11 +0200)
treeb9c9261a13edd3c2d2a459875f9a1d803d902e20
parent7f84f9ff71ac6c664dc540bc4d89244cee638f37
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