[issue40049] tarfile cannot extract from stdin

2020-09-19 Thread Tal Einat
Tal Einat added the comment: This is actually a duplicate of issue12800, which itself describe precisely the same issue as in issue10761, which was fixed but then the fix was lost in a bad merge. I'm closing this, as discussion should happen on the original issues. -- resolution: -

[issue40049] tarfile cannot extract from stdin

2020-09-18 Thread Tal Einat
Tal Einat added the comment: GNU tar (v1.30, Ubuntu 20.04) does indeed overwrite files with symlinks upon extracting, while both `ln -s` and `os.symlink` do not. Therefore I agree that the appropriate behavior would seem to be to overwrite this way, as in the attached PR. -- nosy: +

[issue40049] tarfile cannot extract from stdin

2020-03-27 Thread Danijel
Danijel added the comment: For me, this patch solves my problems. Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40049] tarfile cannot extract from stdin

2020-03-26 Thread Jonathan Hsu
Jonathan Hsu added the comment: This is caused when tarfile tries to write a symlink that already exists. Any exceptions to os.symlink() as handled as if the platform doesn't support symlinks, so it scans the entire tar to try and find the linked files. When it resumes extraction, it needs t

[issue40049] tarfile cannot extract from stdin

2020-03-26 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +18546 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19187 ___ Python tracker _

[issue40049] tarfile cannot extract from stdin

2020-03-26 Thread Danijel
Danijel added the comment: Hi, well, it says entity too large. I've attached a smaller one, that throws a similar but slightly different error. (Note: only on the _second_ extraction, it looks like problems with symlinks) You can find larger ones here: https://data.rbfh.de/issue40049/ The

[issue40049] tarfile cannot extract from stdin

2020-03-26 Thread Manjusaka
Manjusaka added the comment: Hello I can't reproduce this issue on my Laptop from 3.8.1 to 3.9.0a4 I think maybe it depends on the file you use would you mind to upload the file with the problem? -- nosy: +Manjusaka ___ Python tracker

[issue40049] tarfile cannot extract from stdin

2020-03-24 Thread Danijel
Change by Danijel : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue40049] tarfile cannot extract from stdin

2020-03-23 Thread Danijel
New submission from Danijel : Hi, I have the following code: ``` import tarfile import sys tar = tarfile.open(fileobj=sys.stdin.buffer, mode='r|*') tar.extractall("tarout") tar.close() ``` then doing the following on a debian 10 system: ``` $ python -m tarfile -c git.tar /usr/share/doc/git