BUGFIX for ftar
Sune Rastad Bahn
srb at dmi.dk
Fri Oct 18 09:32:40 CEST 2002
I've found a somewhat serious bug in the (/usr)/sbin/ftar version 2.3.4
below is my patch.
115,116c115,116
< [ $deletefiles -eq 1 ] && cd $target/$dir ; rm -f .* * 2>/dev/null
< [ $removedir -eq 1 ] && cd $target/$dir ; rm -rf .* * 2>/dev/null
---
> [ $deletefiles -eq 1 ] && cd $target/$dir && rm -f .* * 2>/dev/null
> [ $removedir -eq 1 ] && cd $target/$dir && rm -rf .* * 2>/dev/null
As you can see the original version (topmost) deleted every file in the
directory where the ftar command was run if deletefiles or removefiles was 0
(default). This could be a recipe for disaster but usually
ftar is called from scripts/ in which case the result is that no further
scripts will be executed, and the install will proceed. If your masochistic
inclined you might want to try to run it in your root, but don't say I didn't
warn you :-)
Best,
Sune
--
Sune Rastad Bahn
Systemadministrator
Danmarks Meteorologiske Institut
Lyngbyvej 100
2100 København Ø
Direkte tlf. : 39157562
Email: srb at dmi.dk
More information about the linux-fai
mailing list