From 3335a8cc4e772ed027e400cfac10b17c1536ad9f Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Tue, 11 Aug 2009 18:37:33 +0200 Subject: moved LoadSettings from plugins into PluginManager --- src/Daemon/CrashWatcher.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/Daemon/CrashWatcher.cpp') diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index 0b98454e..4c0ba64e 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -820,16 +820,7 @@ bool CCrashWatcher::Report(map_crash_report_t pReport, const std::string& pUID) //} try { - struct passwd* pw = getpwuid(atoi(pUID.c_str())); - std::string home = pw ? pw->pw_dir : ""; - if (home != "") - { - m_pMW->Report(pReport, home + "/.abrt/"); - } - else - { - m_pMW->Report(pReport); - } + m_pMW->Report(pReport, pUID); } catch (CABRTException& e) { @@ -893,11 +884,11 @@ vector_map_string_string_t CCrashWatcher::GetPluginsInfo() return vector_map_string_string_t(); } -map_plugin_settings_t CCrashWatcher::GetPluginSettings(const std::string& pName) +map_plugin_settings_t CCrashWatcher::GetPluginSettings(const std::string& pName, const std::string& pUID) { try { - return m_pMW->GetPluginSettings(pName); + return m_pMW->GetPluginSettings(pName, pUID); } catch(CABRTException &e) { -- cgit