]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/files/file_store.cpp
Временно закомментирован метод GetConfModeDir класса настроек плагина
[stg.git] / projects / stargazer / plugins / store / files / file_store.cpp
index 556bf8cfd648e0e0510002957a644023ece9ca01..fe5ed230052a1b30aad4e9c40ba8f37197021add 100644 (file)
@@ -438,7 +438,7 @@ mode_t FILES_STORE_SETTINGS::GetConfMode() const
 {
 return confMode;
 }
-//-----------------------------------------------------------------------------
+/*//-----------------------------------------------------------------------------
 mode_t FILES_STORE_SETTINGS::GetConfModeDir() const
 {
 mode_t mode = confMode;
@@ -446,7 +446,7 @@ if (statMode & S_IRUSR) mode |= S_IXUSR;
 if (statMode & S_IRGRP) mode |= S_IXGRP;
 if (statMode & S_IROTH) mode |= S_IXOTH;
 return mode;
-}
+}*/
 //-----------------------------------------------------------------------------
 uid_t  FILES_STORE_SETTINGS::GetConfUID() const
 {
@@ -1895,6 +1895,7 @@ if (fprintf(statFile, "-> %02d.%02d.%02d - %02d.%02d.%02d\n",
     STG_LOCKER lock(&mutex, __FILE__, __LINE__);
     errorStr = string("fprint failed. Message: '") + strerror(errno) + "'";
     printfd(__FILE__, "FILES_STORE::WriteDetailStat - fprintf failed. Message: '%s'\n", strerror(errno));
+    fclose(statFile);
     return -1;
     }
 
@@ -2214,4 +2215,3 @@ fclose(msgFile);
 return 0;
 }
 //-----------------------------------------------------------------------------
-