python:safe_tarfile: Set extraction_filter for pythons providing it
commit8c90c66a9a409d807dad56822540509c9813425b
authorAndreas Schneider <asn@samba.org>
Tue, 6 Jun 2023 13:29:06 +0000 (6 15:29 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 14 Jun 2023 22:57:34 +0000 (14 22:57 +0000)
tree30e7b6f619892631a5f91fd6e9d20161f6cbaddd
parentebaa00816259cbae5c45ebf0ba5fb260b09e4695
python:safe_tarfile: Set extraction_filter for pythons providing it

It should be available for Python >= 3.11.4 but also has been
backported.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/safe_tarfile.py