-
-
Notifications
You must be signed in to change notification settings - Fork 372
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 300: delete the contents of $tmpdir after creating it #301
base: master
Are you sure you want to change the base?
Conversation
@megastep the Can you help me understand the use case that requires the preservation of files (suid or otherwise) within the target directory? |
While I didn't write this test myself, it appears it is failing because the file disappearing would make the comparison of the permissions before and after extraction fail. Obviously a removed file no longer has permissions... |
I think this was meant to test that Makeself wouldn't overwrite permissions of any existing files after extraction. So in that sense obliterating the whole directory would break this. If we explicitly allow for this possibility when using certain command line flags maybe that test should be revised. |
Maybe a simple solution would be to have the suidtest use the |
Can do. On it... |
@megastep , I think #300 and The In issue #300, @belonesox proposes the non-temporary extraction directory should be emptied just prior to extraction. I can admit my bias is with the status quo in this conflict: the simplest thing to do during extraction is nothing at all and doing nothing at all means not cleaning the extraction directory prior to extraction. |
No description provided.