X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/fca86b001448a88f8cb55ead2320e2280997eada..3b56895a961ab712e2dacd85636baec808c1ac8d:/projects/stargazer/plugins/store/files/file_store.cpp diff --git a/projects/stargazer/plugins/store/files/file_store.cpp b/projects/stargazer/plugins/store/files/file_store.cpp index a49ca977..57f825d6 100644 --- a/projects/stargazer/plugins/store/files/file_store.cpp +++ b/projects/stargazer/plugins/store/files/file_store.cpp @@ -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 { @@ -1921,6 +1921,7 @@ while (stIter != statTree.end()) errorStr += strerror(errno); errorStr += "'"; printfd(__FILE__, "FILES_STORE::WriteDetailStat - fprintf failed. Message: '%s'\n", strerror(errno)); + fclose(statFile); return -1; } #else @@ -1936,6 +1937,7 @@ while (stIter != statTree.end()) errorStr += strerror(errno); errorStr += "'"; printfd(__FILE__, "FILES_STORE::WriteDetailStat - fprintf failed. Message: '%s'\n", strerror(errno)); + fclose(statFile); return -1; } #endif