projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b26f7ed
)
Replace strcmp with g_strcmp0
author
Peng Huang
<shawn.p.huang@gmail.com>
Thu, 7 May 2009 04:02:24 +0000
(12:02 +0800)
committer
Peng Huang
<shawn.p.huang@gmail.com>
Thu, 7 May 2009 04:02:24 +0000
(12:02 +0800)
bus/main.c
patch
|
blob
|
history
diff --git
a/bus/main.c
b/bus/main.c
index
cc4507e
..
081cf5c
100644
(file)
--- a/
bus/main.c
+++ b/
bus/main.c
@@
-159,7
+159,7
@@
main (gint argc, gchar **argv)
uid_t uid = getuid ();
struct passwd *pwd = getpwuid (uid);
- if (pwd == NULL ||
strcmp
(pwd->pw_name, username) != 0) {
+ if (pwd == NULL ||
g_strcmp0
(pwd->pw_name, username) != 0) {
g_printerr ("Please run ibus-daemon with login user! Do not run ibus-daemon with sudo or su.\n");
exit (-1);
}