From: Maxim Mamontov Date: Thu, 9 Dec 2010 15:11:31 +0000 (+0200) Subject: Задействован метод GetConfModeDir (при создании каталога для сообщений) X-Git-Tag: 2.407-rc3~292 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/33be50c3e2838942ed681260fe41606eba1a5203 Задействован метод GetConfModeDir (при создании каталога для сообщений) close #5 --- diff --git a/projects/stargazer/plugins/store/files/file_store.cpp b/projects/stargazer/plugins/store/files/file_store.cpp index 57f825d6..c27019d7 100644 --- a/projects/stargazer/plugins/store/files/file_store.cpp +++ b/projects/stargazer/plugins/store/files/file_store.cpp @@ -438,15 +438,15 @@ mode_t FILES_STORE_SETTINGS::GetConfMode() const { return confMode; } -/*//----------------------------------------------------------------------------- +//----------------------------------------------------------------------------- mode_t FILES_STORE_SETTINGS::GetConfModeDir() const { mode_t mode = confMode; -if (statMode & S_IRUSR) mode |= S_IXUSR; -if (statMode & S_IRGRP) mode |= S_IXGRP; -if (statMode & S_IROTH) mode |= S_IXOTH; +if (confMode & S_IRUSR) mode |= S_IXUSR; +if (confMode & S_IRGRP) mode |= S_IXGRP; +if (confMode & S_IROTH) mode |= S_IXOTH; return mode; -}*/ +} //----------------------------------------------------------------------------- uid_t FILES_STORE_SETTINGS::GetConfUID() const { @@ -1984,7 +1984,7 @@ if (access(dn.c_str(), F_OK) != 0) } } -chmod(dn.c_str(), storeSettings.GetConfMode() | S_IXUSR); +chmod(dn.c_str(), storeSettings.GetConfModeDir()); gettimeofday(&tv, NULL); diff --git a/projects/stargazer/plugins/store/files/file_store.h b/projects/stargazer/plugins/store/files/file_store.h index bf9fbf00..0e937b34 100644 --- a/projects/stargazer/plugins/store/files/file_store.h +++ b/projects/stargazer/plugins/store/files/file_store.h @@ -60,7 +60,7 @@ public: gid_t GetStatGID() const; mode_t GetConfMode() const; - //mode_t GetConfModeDir() const; + mode_t GetConfModeDir() const; uid_t GetConfUID() const; gid_t GetConfGID() const;