View Single Post
Old 02-24-2013, 04:20 PM   #27
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,764
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Quote:
Originally Posted by knc1 View Post
That is the common practice in the "real world" (outside of the hobby world) to always put the archive contents into a directory of the same name.

Next time - bbb-1.0.1 (or whatever) will unpack into its own directory name - making it possible to keep them separate on the system.

The practice also protects against: "tar-bombs" (google that if you have to).
It does not unless you explicitly say to extract it into its own folder. Both your zip and tar.gz extract not only one, but 2 directories: bbb and refs. See here for the tgz, the zip has same contents.
Code:
$ tar tf bbb-1.0.0.tar.gz
bbb/
bbb/menu.json
bbb/frags/
bbb/frags/fw-base.txt
bbb/bin/
bbb/bin/load-bbb.sh
bbb/bin/del-filter.sh
bbb/bin/report-cnts.sh
bbb/bin/load-factory.sh
bbb/config.xml
refs/
refs/LICENSE.txt
refs/amazon-net.txt
DuckieTigger is offline   Reply With Quote