projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff6c7c2
)
Fix the case when the requested name is already in use
author
Vinicius Costa Gomes
<vinicius.gomes@openbossa.org>
Mon, 1 Feb 2010 19:16:22 +0000
(16:16 -0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 7 Mar 2010 22:31:24 +0000
(14:31 -0800)
We weren't setting the dbus error in this situation.
gdbus/mainloop.c
patch
|
blob
|
history
diff --git
a/gdbus/mainloop.c
b/gdbus/mainloop.c
index
7f2d001
..
ec10ab0
100644
(file)
--- a/
gdbus/mainloop.c
+++ b/
gdbus/mainloop.c
@@
-347,8
+347,12
@@
gboolean g_dbus_request_name(DBusConnection *connection, const char *name,
return FALSE;
}
- if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER)
+ if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
+ if (error != NULL)
+ dbus_set_error(error, name, "Name already in use");
+
return FALSE;
+ }
return TRUE;
}