diff options
| author | Karel Klíč <kklic@localhost.localdomain> | 2009-10-07 09:03:23 +0200 |
|---|---|---|
| committer | Karel Klíč <kklic@localhost.localdomain> | 2009-10-07 09:03:23 +0200 |
| commit | 5ca01da2ca21ac33dff245ef89af6b12b6a02bed (patch) | |
| tree | c4893f4d4ec026dfb7cdc48967f6765568504189 /src/Daemon/PluginManager.cpp | |
| parent | 01c00832d83b71ac68af257c41dca98e46a34fd7 (diff) | |
| parent | 678a880a9e5aeb0b0742c69125789842fe32b9fc (diff) | |
| download | abrt-5ca01da2ca21ac33dff245ef89af6b12b6a02bed.tar.gz abrt-5ca01da2ca21ac33dff245ef89af6b12b6a02bed.tar.xz abrt-5ca01da2ca21ac33dff245ef89af6b12b6a02bed.zip | |
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/Daemon/PluginManager.cpp')
| -rw-r--r-- | src/Daemon/PluginManager.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Daemon/PluginManager.cpp b/src/Daemon/PluginManager.cpp index 4c1dae5..bd5727e 100644 --- a/src/Daemon/PluginManager.cpp +++ b/src/Daemon/PluginManager.cpp @@ -420,12 +420,18 @@ void CPluginManager::SetPluginSettings(const std::string& pName, return; } + /** we don't want to save it from daemon if it's running under root + but wi might get back to this once we make the daemon to not run + with root privileges + */ + /* SavePluginSettings(confPath, pSettings); if (chown(confPath.c_str(), uid, gid) == -1) { perror_msg("Can't change '%s' ownership to %u:%u", confPath.c_str(), (int)uid, (int)gid); return; } + */ } } } @@ -443,7 +449,11 @@ map_plugin_settings_t CPluginManager::GetPluginSettings(const std::string& pName if (plugin != m_mapPlugins.end()) { ret = plugin->second->GetSettings(); - + /** we don't want to load it from daemon if it's running under root + but wi might get back to this once we make the daemon to not run + with root privileges + */ + /* if (abrt_plugin->second->GetType() == REPORTER) { std::string home = get_home_dir(atoi(pUID.c_str())); @@ -452,6 +462,7 @@ map_plugin_settings_t CPluginManager::GetPluginSettings(const std::string& pName LoadPluginSettings(home + "/.abrt/" + pName + "."PLUGINS_CONF_EXTENSION, ret); } } + */ return ret; } } |
