4 ms·
I've seen this in tar - isn't it a feature?
by dpedu 8y ago
I've seen this in tar - isn't it a feature?
- wang_li 8y agoNot a good feature. Figuring out the rules that would allow the use of .. in a path name in a safe way seems a lot more difficult than figuring out why you want to put .. into your archive and changing what you are doing to avoid it.
- the8472 8y agoIn tar it definitely is because you can have symlinks using relative paths. So if your directory tree contains symlinks, you tar it with all bells and whistles (attributes, symlinks, ownership) and unpack it somewhere else it won't be a lossy transfer.