s4:torture/vfs/fruit: ensure a directory handle is closed in all code paths
commit8b5a4c3d6d3c4953c2757a58acb05e3d187627c9
authorRalph Boehme <slow@samba.org>
Wed, 31 Oct 2018 14:49:45 +0000 (31 15:49 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 6 Nov 2018 08:11:23 +0000 (6 09:11 +0100)
tree8c0693a08a41edce1010eb66f71556fe8cd5c4d3
parent1e3f8a6fca6207d9a5c163f41dfea2d97187b2e6
s4:torture/vfs/fruit: ensure a directory handle is closed in all code paths

Otherwise we get a sharing violation when running against Samba and
opening the directory a second time.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit f7551d8fb3599a6a71dd0570bad02bdc48324107)
source4/torture/vfs/fruit.c