Igor Pavlov - 2017-03-17

Think about it more and maybe test some "dangerous" cases.
Some hints:
1) Any "Create" operation with any switch is not "dangerous".
2) "dangerous" is only "extract" operation with -spf switch.
So it's not important how archive is created.
In any case we need careful "extract" operation.
Note that hackers can create even rar archives with c:\windows paths.

And it's simpler to store and restore names like

c:\path1\path2

when they have real c:\path1 names.
That is why 7-zip stores real paths with -spf.

 

Last edit: Igor Pavlov 2017-03-17