projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b69179a
)
Don't allow remove method calls on non-favorite services
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 15 May 2009 07:01:57 +0000
(
00:01
-0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 15 May 2009 07:01:57 +0000
(
00:01
-0700)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
bfc09ba
..
a6ee992
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-417,6
+417,9
@@
static DBusMessage *remove_service(DBusConnection *conn,
if (service->type == CONNMAN_SERVICE_TYPE_ETHERNET)
return __connman_error_not_supported(msg);
+ if (service->favorite == FALSE)
+ return __connman_error_not_supported(msg);
+
if (service->network != NULL) {
struct connman_device *device;