summaryrefslogtreecommitdiffstats
path: root/src/Applet
diff options
context:
space:
mode:
authorNikola Pajkovsky <npajkovs@redhat.com>2009-11-03 12:15:55 +0100
committerNikola Pajkovsky <npajkovs@redhat.com>2009-11-03 12:15:55 +0100
commite8eefb19c47a7f4e7481d1f6460f8632e09bd76e (patch)
tree35660112ef5fc041d5ad3719f91d36f9b24ba1c5 /src/Applet
parenta5671452a511f992cd0e74c66da05e85c999d63f (diff)
downloadabrt-e8eefb19c47a7f4e7481d1f6460f8632e09bd76e.tar.gz
abrt-e8eefb19c47a7f4e7481d1f6460f8632e09bd76e.tar.xz
abrt-e8eefb19c47a7f4e7481d1f6460f8632e09bd76e.zip
kerneloop has uid = -1 new
Diffstat (limited to 'src/Applet')
-rw-r--r--src/Applet/Applet.cpp8
1 files changed, 4 insertions, 4 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);