Bug 190515 - Extracting zip files when directory names start with + does not work properly
Summary: Extracting zip files when directory names start with + does not work properly
Status: RESOLVED DUPLICATE of bug 176646
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Unspecified
: NOR normal
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-24 15:38 UTC by Ustun Ozgur
Modified: 2009-04-25 16:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ustun Ozgur 2009-04-24 15:38:40 UTC
Version:            (using KDE 4.2.2)
Installed from:    Debian testing/unstable Packages

If a zip file has a directory whose name starts with a +, ark extracts the files in the folder in the parent directory.

For example, with the following structure:
file0.m
+layout/
    file1.m
    file2.m

ark will extract them as:
file0.m
+layout/file1.m
+layout/file2.m

So, the file names are converted to: "+layout/file1" while they should have been file1 inside the +layout directory.

Unzip successfully extracts this http://www.mathworks.com/matlabcentral/fileexchange/23862 for example, but ark fails to do.
Comment 1 Raphael Kubo da Costa 2009-04-25 16:14:31 UTC
Closing as a duplicate. The problem doesn't seem to be the '+', but the '\' 
being used as the directory separator instead of '/'. Technically, this is 
actually an invalid zip file. Unzip itself extracts the file but says "warning: 
 uisignalbuilder.zip appears to use backslashes as path separators".

As said in the original bug report, if there are enough zip files like this out 
there, Ark may eventually add support for them.

*** This bug has been marked as a duplicate of bug 176646 ***