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:
parent
32fa8d3665
commit
4cba544d05
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user