News for hackers. Stuff that matters.
Re:How to destroy your OS with tar by silisili on Thursday May 23, 2024 @11:54PM (#40462643)
If I'm reading this right, using --no-overwrite-dir should have prevented this, I think.

I'd still extract to a local folder as nonroot, though, so still the right conclusion.

Re:How to destroy your OS with tar by vorakl on Friday May 24, 2024 @12:15AM (#40462746)
--no-overwrite-dir (Preserve metadata of existing directories)

This is a really good point! It solves the main problem. I'll add it to the article.

Although that's what, unfortunately, is set by default (at least in GNU tar):

--overwrite-dir (Overwrite metadata of existing directories when extracting (default).)