]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/bb/utils: add safeguard against recursively deleting things we shouldn't
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 17 Apr 2015 14:26:59 +0000 (15:26 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Apr 2015 12:37:12 +0000 (13:37 +0100)
commit56cddeb9e1e4d249f84ccd6ef65db245636e38ea
treef6ed3b832a0cdf2ddfe3255cb78537dc3bf992ad
parent3b8a656d3ccb543c32696229184ebf12237ad38e
lib/bb/utils: add safeguard against recursively deleting things we shouldn't

Add some very basic safeguard against recursively deleting paths such
as / and /home in the event of bugs or user mistakes.

Addresses [YOCTO #7620].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/tests/utils.py
lib/bb/utils.py