Prevent unpacking files with permissions set to 0, where user will need to use sudo to remove or access them. Issue observed with "fat" type files in zip. Also fixes issue when unzip errors out after unpacking first directory and cannot write files inside due to permissions.
Default file and directory permission values where taken from Gnome Archive Manager.
Fixes #302
I know, that this is not perfect solution, but at least it makes Sunflower inbuilt zip unpacker much more useful, for now. In the future I suppose unpacker might switch to libarchive (if user has it installed) to provide much better unpacking features support.
Prevent unpacking files with permissions set to 0, where user will need to use sudo to remove or access them. Issue observed with "fat" type files in zip. Also fixes issue when unzip errors out after unpacking first directory and cannot write files inside due to permissions. Default file and directory permission values where taken from Gnome Archive Manager. Fixes #302
I know, that this is not perfect solution, but at least it makes Sunflower inbuilt zip unpacker much more useful, for now. In the future I suppose unpacker might switch to libarchive (if user has it installed) to provide much better unpacking features support.