Comment 12 for bug 493244

Revision history for this message
tomazzi (tomazzi-wp) wrote :

Well, I have this problem since... I even don't remember... and that's true - only wine folders (prefixes) are affected. It was/is not very annoying but rather strange. Today I've found some time to investigate this behaviour of nautilus/file-roller and it looks like I've found the source of this problem.
I've checked permissions of (sub)folders and files and tested every particular folder if it can be compressed with RightMouseClick -> and ONLY SOME OF THEM causes file-roller to stop with "permission denied" message.

Direct cause is, that wine creates links to "dosdevices", "My documents" "My movies" ... and so on, just like windoze. Usually Z: drive is linked to /root and in $WINEPREFIX/drive_c/users/<username>/ other critical links are placed. That means if someone wants to compress whole $WINEPREFIX directory, or just drive "C:" there is high chance to get permissions violation. Solution is to check every link in every folder and change it to safe location or just reove it. Doing so I was able to compress whole WINEPREFIX without error.

Conclusion: File-Roller follows links during creating list of files, and can cause permissions violation.
Suggested solution: Not only wine folders can contain links -> it would be nice to have option like "Do not follow links" in FileRoller window.