[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] [patch] abort if output file name and log file name a
Antonio Diaz Diaz
Re: [Bug-ddrescue] [patch] abort if output file name and log file name are the same.
Fri, 20 May 2011 21:08:42 +0200
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905
Thanks for reporting this. I think it is a good idea.
Jussi Judin wrote:
This does not protect against cases where you use full path for one file
and relative for another or symbolic links but those kind of file name
screw-ups are probably harder to do by accident.
Using the check_identical function already used to verify that input and
output files are not the same may provide some extra protection if both
files already exist. (See main.cc, lines 186-192).