Back in March of 2005, my home directory got completely erased due to
the problem that Dr. Rohlfing pointed out. At that time, Mark
Jenkinson sent me the following email:
"""
...
We have fixed the fast script here, but for some reason it has
escaped going into the patches. I'll try to fix that asap.
For the moment, I recommend the following change:
REPLACE
rm -rf ${tmpbase}*
WITH
if [ X${tmpbase} != X ] ; then
rm -rf ${tmpbase}*
fi
at the end of the fast script.
Once again, my apologies for this,
Mark
"""
cheers,
@rno
> Date: Thu, 26 Jul 2007 16:14:51 -0700
> From: Torsten Rohlfing <[log in to unmask]>
> Subject: suggestion: maybe "rm -rf" in "fast" is not such a great idea...
>
> Hi there --
>
> I have a suggestion: maybe the last line in $FSLDIR/bin/fast, "rm -rf
> ${tmpbase}*" is not such a great idea. Somehow, $FSLDIR/bin/tmpnam
> didn't work on one of my machines. Not idea what exactly happened, but
> it apparently returned an empty string. You are probably guessing what
> happened next -- I lost an entire project filesystem with some 30GB of
> data. Well, I didn't really lose anything, thanks to nightly backup
> images, that's the good news :)
>
> Anyway, how about making sure $tmpbase is actually defined and not empty
> before calling rm? Might save someone else who's not so lucky a world of
> pain.
>
> Best,
> Torsten
>
> --
> Torsten Rohlfing, PhD SRI International, Neuroscience Program
> Research Scientist 333 Ravenswood Ave, Menlo Park, CA 94025
> Phone: ++1 (650) 859-3379 Fax: ++1 (650) 859-2743
> [log in to unmask] http://www.stanford.edu/~rohlfing/
|