From d86ef621881bd05c142a496d1c5216c05b7c4f51 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Fri, 10 Dec 2010 15:03:07 +0200 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D1=81?= =?utf8?q?=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B0?= =?utf8?q?=D0=B4=D0=BC=D0=B8=D0=BD=D0=B0=20=D0=B8=20=D1=82=D0=B0=D1=80?= =?utf8?q?=D0=B8=D1=84=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit В плагине файлового хранилища исправлена ошибка, привнесенная предыдущими изменениями, приводящая к сохранению пустых файлов админов и тарифов --- projects/stargazer/plugins/store/files/file_store.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/stargazer/plugins/store/files/file_store.cpp b/projects/stargazer/plugins/store/files/file_store.cpp index aea3aedc..5a61eea4 100644 --- a/projects/stargazer/plugins/store/files/file_store.cpp +++ b/projects/stargazer/plugins/store/files/file_store.cpp @@ -1298,7 +1298,7 @@ strprintf(&fileName, "%s/%s.adm", storeSettings.GetAdminsDir().c_str(), ac.login Touch(fileName + ".new"); { - CONFIGFILE cf(fileName); + CONFIGFILE cf(fileName + ".new"); int e = cf.Error(); @@ -1666,7 +1666,7 @@ string fileName = storeSettings.GetTariffsDir() + "/" + tariffName + ".tf"; Touch(fileName + ".new"); { - CONFIGFILE cf(fileName); + CONFIGFILE cf(fileName + ".new"); int e = cf.Error(); -- 2.44.2