bitbake: 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)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 26 Jul 2015 13:13:57 +0000 (10:13 -0300)
commit42523faa48db8e5acbb6f6a1bbadd8a115ed8650
treebb3c9ec9e081d062d1d3df477008b4088ee01a5b
parentafbb178ee3c45ddfc52b1eacb0084c29a77aea5d
bitbake: 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].

(Bitbake master rev: 56cddeb9e1e4d249f84ccd6ef65db245636e38ea)

(Bitbake rev: fbf1c39641f78d553961974a2bb96256eb9496e7)

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