mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Changed from Move() to Copy() when backing up configs
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@449 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -307,7 +307,7 @@ CString CZNC::ExpandConfigPath(const CString& sConfigFile) {
|
||||
bool CZNC::WriteConfig() {
|
||||
CFile File(m_sConfigFile);
|
||||
|
||||
if (!File.Move(GetConfBackupPath() + "/" + File.GetShortName() + "-" + CString::ToString(time(NULL)))) {
|
||||
if (!File.Copy(GetConfBackupPath() + "/" + File.GetShortName() + "-" + CString::ToString(time(NULL)))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user