summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Applet/Applet.cpp8
-rw-r--r--src/Daemon/Daemon.cpp6
2 files changed, 6 insertions, 8 deletions
diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp
index ea58b253..327e24f5 100644
--- a/src/Applet/Applet.cpp
+++ b/src/Applet/Applet.cpp
@@ -67,12 +67,12 @@ static void Crash(DBusMessage* signal)
// uid_t uid_num = atol(uid_str);
char* endptr;
- uid_t uid_num = (uid_t)strtoul(uid_str,&endptr, 10);
+ int64_t uid_num = strtoll(uid_str,&endptr, 10);
- printf("%u:%s\n", uid_num, uid_str);
- if ((uid_num != getuid()) && (uid_num != UINT_MAX))
+ if ((uid_num != getuid()) && (uid_num != -1))
+ {
return;
-
+ }
const char* message = _("A crash in package %s has been detected");
//applet->AddEvent(uid, progname);
applet->SetIconTooltip(message, progname);
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index 0e81dfdc..ef78c6a6 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -531,8 +531,7 @@ static gboolean handle_inotify_cb(GIOChannel *gio, GIOCondition condition, gpoin
{
// 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));
+ g_pCommLayer->Crash(crashinfo[CD_PACKAGE][CD_CONTENT], to_string("-1"));
}
else
{
@@ -547,8 +546,7 @@ static gboolean handle_inotify_cb(GIOChannel *gio, GIOCondition condition, gpoin
{
// 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));
+ g_pCommLayer->Crash(crashinfo[CD_PACKAGE][CD_CONTENT], to_string("-1"));
}
else
{