[yocto] Badly formatted subpath for git SRC_URI deletes portions of hard drive.

Nicolas Dechesne nicolas.dechesne at linaro.org
Thu Apr 16 07:25:13 PDT 2015


On Thu, Apr 16, 2015 at 3:11 PM, Anders Darander <anders at chargestorm.se>
wrote:

> > > Running the recipe resulted in do_fetch (or do_unpack) failing again
> and
> > > complaining about missing files. This time the deletion was on a much
> > > greater scale, it had deleted so much of my home-dir that my user
> > > account was rendered entirely useless. The fastest way to recover this
> > > time was re-installing the machine.
>
> It's most likely a call to bb.utils.prunedir(destdir), with destdir
> being set to '/'...



ouch... this is a bit scary ;-)

maybe we should assert the folder name is 'sane' when we do destructive
operations like that. e.g. check that we are in TMPDIR, or TOPDIR..

hopefully nobody does sudo bitbake ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150416/0b04a05b/attachment.html>


More information about the yocto mailing list