From 6a2f407ebc40f7ab42b71900726710515721db8bc6bc45bfd9f51f4bb8e98182 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 27 Apr 2023 23:43:26 +0000 Subject: [PATCH] We can always chmod OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python310?expand=0&rev=87 --- CVE-2007-4559-filter-tarfile_extractall.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CVE-2007-4559-filter-tarfile_extractall.patch b/CVE-2007-4559-filter-tarfile_extractall.patch index 9ce6bb4..ab47bf9 100644 --- a/CVE-2007-4559-filter-tarfile_extractall.patch +++ b/CVE-2007-4559-filter-tarfile_extractall.patch @@ -2066,7 +2066,7 @@ Content-Transfer-Encoding: 8bit + path = pathlib.Path(os.path.normpath(self.destdir / name)) + self.assertIn(path, self.expected_paths) + self.expected_paths.remove(path) -+ if mode is not None and os_helper.can_chmod(): ++ if mode is not None: + got = stat.filemode(stat.S_IMODE(path.stat().st_mode)) + self.assertEqual(got, mode) + if type is None and isinstance(name, str) and name.endswith('/'):