From 6b6e1c150f67e9c8e35c404d4d1e640fb77d4635 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Mon, 17 May 2010 11:50:22 -0300 Subject: [PATCH] obexd: Add folder name verification for PullvCardListing on ebook backend All contacts of evolution back-end will be mapped into /telecom/pb folder. PullvCardListing of other folders shall return OBEX Not Found error. --- obexd/plugins/phonebook-ebook.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c index 4111b45a2..903ca58c6 100644 --- a/obexd/plugins/phonebook-ebook.c +++ b/obexd/plugins/phonebook-ebook.c @@ -438,6 +438,9 @@ int phonebook_create_cache(const char *name, phonebook_entry_cb entry_cb, EBookQuery *query; gboolean ret; + if (g_strcmp0("/telecom/pb", name) != 0) + return -ENOENT; + query = e_book_query_any_field_contains(""); data = g_new0(struct cache_query, 1); -- 2.47.3