summaryrefslogtreecommitdiffstats
path: root/src/Daemon/Daemon.cpp
diff options
context:
space:
mode:
authorNikola Pajkovsky <npajkovs@redhat.com>2009-10-29 15:20:56 +0100
committerNikola Pajkovsky <npajkovs@redhat.com>2009-10-29 15:20:56 +0100
commit7f10181be367d77e5f3203e938ab24cf722119df (patch)
tree2c5f02ed0e9174bc3483aee3d0b84f860c314aef /src/Daemon/Daemon.cpp
parentad158666b7a144d557a9476408766a7bbf7ace9d (diff)
downloadabrt-7f10181be367d77e5f3203e938ab24cf722119df.tar.gz
abrt-7f10181be367d77e5f3203e938ab24cf722119df.tar.xz
abrt-7f10181be367d77e5f3203e938ab24cf722119df.zip
Normal user can see kerneloops and report it
Bugzilla memory leaks fix
Diffstat (limited to 'src/Daemon/Daemon.cpp')
-rw-r--r--src/Daemon/Daemon.cpp27
1 files changed, 24 insertions, 3 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index d1ab188e..a6a4f93c 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -22,6 +22,7 @@
#include <glib.h>
#include <pthread.h>
#include <string>
+#include <limits.h>
#if HAVE_CONFIG_H
#include <config.h>
#endif
@@ -555,14 +556,34 @@ static gboolean handle_event_cb(GIOChannel *gio, GIOCondition condition, gpointe
log("New crash, saving...");
RunActionsAndReporters(crashinfo[CD_MWDDD][CD_CONTENT]);
/* Send dbus signal */
- g_pCommLayer->Crash(crashinfo[CD_PACKAGE][CD_CONTENT], crashinfo[CD_UID][CD_CONTENT]);
+ if(crashinfo[CD_MWANALYZER][CD_CONTENT] == "Kerneloops")
+ {
+ // When Kerneloops comes it will be sent uid with -1
+ // Applet will detected and show normal user
+ std::cout << "New: package|kerneloops" << crashinfo[CD_PACKAGE][CD_CONTENT] << std::endl;
+ g_pCommLayer->Crash(crashinfo[CD_PACKAGE][CD_CONTENT], to_string(UINT_MAX));
+ }
+ else
+ {
+ g_pCommLayer->Crash(crashinfo[CD_PACKAGE][CD_CONTENT], crashinfo[CD_UID][CD_CONTENT]);
+ }
break;
case MW_REPORTED:
case MW_OCCURED:
log("Already saved crash, deleting...");
/* Send dbus signal */
- g_pCommLayer->Crash(crashinfo[CD_PACKAGE][CD_CONTENT], crashinfo[CD_UID][CD_CONTENT]);
- DeleteDebugDumpDir(std::string(DEBUG_DUMPS_DIR) + "/" + name);
+ if(crashinfo[CD_MWANALYZER][CD_CONTENT] == "Kerneloops")
+ {
+ // When Kerneloops comes it will be sent uid with -1
+ // Applet will detected and show normal user
+ std::cout << "New: package|kerneloops" << crashinfo[CD_PACKAGE][CD_CONTENT] << std::endl;
+ g_pCommLayer->Crash(crashinfo[CD_PACKAGE][CD_CONTENT], to_string(UINT_MAX));
+ }
+ else
+ {
+ g_pCommLayer->Crash(crashinfo[CD_PACKAGE][CD_CONTENT], crashinfo[CD_UID][CD_CONTENT]);
+ }
+ //DeleteDebugDumpDir(std::string(DEBUG_DUMPS_DIR) + "/" + name);
break;
case MW_BLACKLISTED:
case MW_CORRUPTED: