|
From: | Antonio Diaz Diaz |
Subject: | Re: [Bug-ddrescue] [patch] abort if output file name and log file name are the same. |
Date: | Fri, 20 May 2011 21:08:42 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
Hello Jussi, 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).
Best regards, Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |