mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:43:04 +01:00
do not overwrite destination during nbackup restore
This commit is contained in:
parent
32fa8d3665
commit
4cba544d05
@ -857,7 +857,7 @@ void nbackup::restore_database(int filecount, const char* const* files)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#ifdef WIN_NT
|
#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",
|
b_error::raise("Error (%d) creating database file: %s via copying from: %s",
|
||||||
GetLastError(), dbname.c_str(), bakname.c_str());
|
GetLastError(), dbname.c_str(), bakname.c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user