s3:pysmbd: fix fd leak in py_smbd_create_file()
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Feb 2021 12:48:36 +0000 (13:48 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 16 Feb 2021 16:20:18 +0000 (16:20 +0000)
commit5957cf2e2ca6265f233803c23212d307c3ccf530
tree3785ef74f5a62cefbf2f4d5b39d45ca8b9980b14
parent780fbc3004126175c66ec906910453aed866b163
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