s3: smbd: Now we're using OpenDir_fsp() all the time, make sure we don't leak file...
commit84312fc5c289c926e189504b144bf9655491f706
authorJeremy Allison <jra@samba.org>
Wed, 17 Jul 2019 22:21:21 +0000 (17 15:21 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 6 Aug 2019 14:23:34 +0000 (6 14:23 +0000)
tree0d7723e2100e0e17b37f80b4f8c0033dffac0c8f
parentd485c43cc74c5550d151fe728ddc53b02ab23df8
s3: smbd: Now we're using OpenDir_fsp() all the time, make sure we don't leak file handles.

We must always set dir_hnd->fsp, even in the fallback to
SMB_VFS_OPENDIR() case. Remember if we had to fall back
and fix the destructor to close the additional file
descriptor if we did.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c