Skip to content

Fix archive containing a single invalid symbol#5

Open
susematz wants to merge 1 commit intojnweiger:masterfrom
susematz:fix-nonexist-symlink
Open

Fix archive containing a single invalid symbol#5
susematz wants to merge 1 commit intojnweiger:masterfrom
susematz:fix-nonexist-symlink

Conversation

@susematz
Copy link
Copy Markdown

If an archive contains a single symbol whose target doesn't exist
(like gcc's libgo testsuite for the tar module) then neither
ref $unpacked nor -e $unpacked is true (because unpacking causes
no error, but still the file doesn't exist in -e parlance). The
if cascade after it explicitely checks for symlink-ness of
$unpacked and does the right thing (removing it), so just don't
die prematurely if $unpacked is a symlink.

If an archive contains a single symbol whose target doesn't exist
(like gcc's libgo testsuite for the tar module) then neither
ref $unpacked nor -e $unpacked is true (because unpacking causes
no error, but still the file doesn't exist in -e parlance).  The
if cascade after it explicitely checks for symlink-ness of
$unpacked and does the right thing (removing it), so just don't
die prematurely if $unpacked is a symlink.
@kraih
Copy link
Copy Markdown

kraih commented Mar 16, 2017

Nice find and explanation. 👍

@susematz
Copy link
Copy Markdown
Author

Yeah, well, I'm very interested in gcc7 progressing in legaldb ;-)
Now if I only hadn't fat-fingered symlink for symbol in comment and commit subject :-/ No matter, not
worth it to amend and resubmit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants