Quote:
Originally Posted by knc1
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