GNOME Bugzilla – Bug 314631
Executing "beagle-build-index --recursive ~" deletes all user data.
Last modified: 2005-09-12 16:21:24 UTC
Distribution/Version: Gentoo Here's a little bit of frightening functionality that should be removed from Beagle-Build-Index. I was playing around the Beagle earlier this night on my Gentoo box when I decided to see if I couldn't get more results. So, I executed "beagle-build-index --recursive ~" on my system. But apparently Beagle recursively went through everything and nuked it - Bookmarks, images, projects, etc. I'm glad I had backups, but geez, this can't be right, can it? Even if I'm not using Beagle-Build-Index correctly, there should be safeguards to ensure that Beagle can't nuke a users /home directory, right? By the way, a demonstration of what I'm talking about can be seen at this address: http://sec.sankyuu.com/beagle-bug/ (It's my personal webserver so do be patient if it is slow.) By the way, I was lucky enough to recover most of my files doing some fancy dd and reiserfsck stuff, and got the rest from a previous backup I did a week ago (first backup in a year and a half - pretty lucky, huh?) But this scared the crap out of me.
I vote for this bug. Somehow the version I am using needs a --target argument. I by mistake gave the wrong to --target (dunno what was thinking at that moment :P) and whoops... my music collection vanished into thin air. I was quick in pressing ctrl-c but the damage was already done. I stronly suggest a confirmation regarding the index_path and to_index_dir before carrying out the actual creation. PS: I have to store the music on Fat32 for various reasons - got back the files using an undelete software but with garbled names. Sigh ...
This has been fixed in CVS for some time. We'll get a release with it out there soon.
*** Bug 315994 has been marked as a duplicate of this bug. ***