s3:pysmbd: fix fd leak in py_smbd_create_file()
commitecb41890f10e497a1dc1e25499b44538856af6f0
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Feb 2021 12:48:36 +0000 (9 13:48 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 16 Feb 2021 17:16:40 +0000 (16 17:16 +0000)
tree951ca122e36304b9933dfb568cfe66582ec1a710
parenta6f228f67549f2be71cbfb96e632f0d0aa495055
s3:pysmbd: fix fd leak in py_smbd_create_file()

Various 'samba-tool domain backup' commands use this and will
fail if there's over ~1000 files in the sysvol folder.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13898

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit d8fa464a2dfb11df4e1db4ebffe8bd28ff118c75)
source3/smbd/pysmbd.c