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)
committerStefan Metzmacher <metze@samba.org>
Wed, 10 Feb 2021 14:00:32 +0000 (14:00 +0000)
commitd8fa464a2dfb11df4e1db4ebffe8bd28ff118c75
treed05c3f8e6d094f23e88940f27d8291822edffc69
parentab943babc3eb454186558f6e863996dfcf7a20ea
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>
source3/smbd/pysmbd.c