8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:43:03 +01:00

do not overwrite destination during nbackup restore

This commit is contained in:
skidder 2005-07-19 23:23:24 +00:00
parent 32fa8d3665
commit 4cba544d05

View File

@ -857,7 +857,7 @@ void nbackup::restore_database(int filecount, const char* const* files)
}
else {
#ifdef WIN_NT
if (!CopyFile(bakname.c_str(), dbname.c_str(), FALSE)) {
if (!CopyFile(bakname.c_str(), dbname.c_str(), TRUE)) {
b_error::raise("Error (%d) creating database file: %s via copying from: %s",
GetLastError(), dbname.c_str(), bakname.c_str());
}