Skip to content

Commit 7bd7b85

Browse files
committed
remove part of poc that used to bypass data filter
it doesn't have to do with this bug
1 parent 0e2d157 commit 7bd7b85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_tarfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,8 +2731,7 @@ def mock_chmod_side_effect(path, mode, **kwargs):
27312731
with ArchiveMaker() as arc:
27322732
arc.add('x', symlink_to='.')
27332733
arc.add('x', type=tarfile.DIRTYPE, mode='?rwsrwsrwt')
2734-
arc.add('x', symlink_to=('y/' + '../' + outside_tree_dir))
2735-
arc.add('y/', symlink_to=('../' * len(tempdir.split(os.path.sep))))
2734+
arc.add('x', symlink_to=outside_tree_dir)
27362735

27372736
os.makedirs(outside_tree_dir)
27382737
try:

0 commit comments

Comments
 (0)