GNOME Bugzilla – Bug 410954
beagle-exercise-file-system destroys any contents of directory named "1"
Last modified: 2007-04-07 23:49:04 UTC
Please describe the problem:
beagle-exercise-filesystem command without any warning destroys any contents of a directory "1" in the current working directory.
Unfortunately my wife keeps a lot of precious files in $HOME/1... fortunately, we have backup.
Steps to reproduce:
1. Create directory "1"
2. Put some important data there (just kidding)
3. Run "beagle-exercise-filesystem"
The data from directory "1" is lost. Numbered directories and empty files are put there instead.
When directory "1" already exists the tool should abort or ask for confirmation before continuing.
Does this happen every time?
Oof, I'm really sorry about that.
We should stop installing beagle-exercise-file-system, it's only supposed to be used for debugging by developers.
Yes, not installing it by default will solve the problem for regular users. Though, do not developers make mistakes too? I guess adding the check may be a good idea anyway.
May it should do not run if directory already exists? Except force option or something like that.
Maybe it could run in the directory specified by the TMP variable, so it won't mess with anything needed? One can always change TMP for testing purposes on other mount points...
Its just a debugging tool. Developers are used to playing with fire ;-)
Anyway, it has been removed from svn (moved to attic/).