From 33be50c3e2838942ed681260fe41606eba1a5203 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Thu, 9 Dec 2010 17:11:31 +0200 Subject: [PATCH] =?utf8?q?=D0=97=D0=B0=D0=B4=D0=B5=D0=B9=D1=81=D1=82=D0=B2?= =?utf8?q?=D0=BE=D0=B2=D0=B0=D0=BD=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20GetC?= =?utf8?q?onfModeDir=20(=D0=BF=D1=80=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4?= =?utf8?q?=D0=B0=D0=BD=D0=B8=D0=B8=20=D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE?= =?utf8?q?=D0=B3=D0=B0=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=BE=D0=BE=D0=B1?= =?utf8?q?=D1=89=D0=B5=D0=BD=D0=B8=D0=B9)=20close=20#5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../stargazer/plugins/store/files/file_store.cpp | 12 ++++++------ projects/stargazer/plugins/store/files/file_store.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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; -- 2.44.2