View Single Post
Old 08-24-2016, 02:12 PM   #1005
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Yourcat View Post
Opening a file does likely not modify it. Stripping the leading slash during extraction is usually what most people expect. So there could be also nice anti-virus programs or browser plugins altering the archive.
alias tar="tar --absolute-names"
We already went through this previously.
If Safari is set to open (rather than save) the archive with the system's default archiver, when you select 'save' it re-archives the "opened" contents, with only 'safe' paths.
It does not save the original file, it recreates it.

= = = =

And the sub-topic here is Mac OSx - whose default archiver is bsdtar, not gnutar.
bsdtar does not have an "--absolute-names" option.

Last edited by knc1; 08-24-2016 at 02:19 PM.
knc1 is offline   Reply With Quote