ark does not preserve permissions when extracting folders
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ark (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This is the structure of a directory:
$ sudo tree -ps
.
├── [d--------- 4096] Peppo
│ ├── [-rw------- 2] Archivo de texto.txt
│ ├── [----rw---- 7390] LibreOffice Calc.ods
│ └── [d--------- 4096] zeppo
│ └── [-r-------- 111] Archivo HTML.html
2 directories, 3 files
Then, I run this command (I need root privileges to overcome permissions)
$ sudo zip -r kk.zip Peppo/
I have run "zipinfo" and the permissions are OK inside "kk.zip".
Whenever I extract the whole structure of "kk.zip" with ark (with dialog, i.e. graphics, with Dolphin's contextual menu, from console --running "ark --batch kk.zip"--), permissions of all the directories are **not** kept. Instead, all of the directories are created using system's umask (in my case 027, so permissions are rwxr-x--- for folders "Peppo" and "zeppo"). The permissions of all the files are OK (they are kept).
If I use "unzip" from the command line (unzip kk.zip), however, all of the permissions (directories and files) are perfectly kept.
This is annoying since there is no way to tell ark that the original permissions of directories must be kept when decompressing. Moreover, I think that the default behavior of ark should be the same as "unzip", that is, keeping the original permissions of both directories and files.
I think this is a bug because, in fact, ark preserves permissions when extracting files but not the directories. It seems that directories are not extracted but created.
Thanks a lot in advance for your consideration.
affects: | akonadi (Ubuntu) → ark (Ubuntu) |
summary: |
- ark does not preserve permissions when extracting folder + ark does not preserve permissions when extracting folders |