-
Notifications
You must be signed in to change notification settings - Fork 236
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
quazip don't extract file as symlink on linux #48
Comments
I had no idea ZIP even supported symlinks. I'll look into it. |
@stachenov zip -y |
No, wait. Is that my commit? Change “haad no idea” to “totally forgot” and say again, what's your problem? Show me the shortest code that doesn't work. |
@stachenov |
@stachenov
Ok so how can I detect if file in zip is symlink ? |
it looks like minizip continue in development here https://github.com/nmoinvaz/minizip |
Yes, I know, but QuaZIP needs some extra modifications in minizip. It can't be used as-is. |
I found that all information is in externalAttr
ispiration is from |
Right, it's the same bits that are used in |
Could you tell me if it's been fixed? or How can i to fix it. |
QuaZip is now stuck between 0.9.x and 1.0, thanks to CMake... There's the |
I sort of fixed this now with e226541, but I'm not sure what happens if someone tries to extract an archive containing symbolic links on Windows. Qt will probably end up creating shortcuts instead, which will probably won't be what the user expect because they won't be named |
Added a Windows test in 54fd26e. Looks like it works as expected, except that links are broken, but they are useless anyway. At least extraction works in general. The only part I'm unsure of now is this:
I couldn't find what that Windows mask means for Unix permissions. Currently this code is executed for both symbolic links and shortcuts on Qt versions up to 5.13.x, and since 5.14 it is only executed for symbolic links, which are a rare beast on Windows. This code is sort of harmless too because the worst it can do is create ZIP archives with broken links inside. But I'll keep this open for a while in case someone has an idea how to do it right. |
I have a zip file with symlinks
but when I extracted files with quazip symlinked files looks like file with text to symlinked file
so this
0e5c7ad
don't work on linux
The text was updated successfully, but these errors were encountered: