From 9713a81b1264f677fa465df978ee3403008bd32a4a591df466aa7f593af0015b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 29 Feb 2024 01:27:25 +0000 Subject: [PATCH] Fix the patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python310?expand=0&rev=115 --- CVE-2023-6597-TempDir-cleaning-symlink.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CVE-2023-6597-TempDir-cleaning-symlink.patch b/CVE-2023-6597-TempDir-cleaning-symlink.patch index 8b12790..5d9f7f4 100644 --- a/CVE-2023-6597-TempDir-cleaning-symlink.patch +++ b/CVE-2023-6597-TempDir-cleaning-symlink.patch @@ -55,7 +55,7 @@ "were deleted") d2.cleanup() -+ @support.skip_unless_symlink ++ @os_helper.skip_unless_symlink + def test_cleanup_with_symlink_modes(self): + # cleanup() should not follow symlinks when fixing mode bits (#91133) + with self.do_create(recurse=0) as d2: @@ -105,7 +105,7 @@ + '%03o != %03o' % (new_mode, old_mode)) + + @unittest.skipUnless(hasattr(os, 'chflags'), 'requires os.chflags') -+ @support.skip_unless_symlink ++ @os_helper.skip_unless_symlink + def test_cleanup_with_symlink_flags(self): + # cleanup() should not follow symlinks when fixing flags (#91133) + flags = stat.UF_IMMUTABLE | stat.UF_NOUNLINK @@ -162,7 +162,7 @@ - @unittest.skipUnless(hasattr(os, 'chflags'), 'requires os.lchflags') + def check_flags(self, flags): + # skip the test if these flags are not supported (ex: FreeBSD 13) -+ filename = support.TESTFN ++ filename = os_helper.TESTFN + try: + open(filename, "w").close() + try: