Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix archive containing a single invalid symbol #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

susematz
Copy link

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

kraih commented Mar 16, 2017

Nice find and explanation. 👍

@susematz
Copy link
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.

None yet

2 participants