Unzip - Warning and Mapname Unzip - Warning and Mapname bash bash

Unzip - Warning and Mapname


Trying to unzip from the command line a Dropbox autogenerated zip, I found this message too:

warning:  stripped absolute path spec from /mapname:  conversion of  failed

I compared Dropbox's zip with a normal zip.

The difference was that, at the time of the unzipping, in the Dropbox's one appears in a first position a kind of file like /.

I just add the option -x / to the unzip command trying to exclude it, and it works for me.


In my opinion, the root issue is the archive, not your command.

By default, we store relative paths in a ZIP file. Example:

$ zip tmp.zip /home/mcoolive/*txtadding: home/mcoolive/file1.txt (deflated 73%)adding: home/mcoolive/file2.txt (deflated 76%)

By default, unzip recreates all files and subdirectories are recreated in the current directory.

In your case, the archive contains absolut paths. It's evil. So your client converts absolut paths into relative paths with a warning.