diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2010-05-17 11:50:22 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-05-21 09:34:33 +0200 |
commit | d1e0ebdd25e3cfb542b16d2651915b814f2a0d49 (patch) | |
tree | 312290f93177947d103a9b8f78de72fbc59a6aa8 | |
parent | 1e03acd51d366da61727ae85882a922e9085d04a (diff) | |
download | obexd-d1e0ebdd25e3cfb542b16d2651915b814f2a0d49.tar.gz |
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.
-rw-r--r-- | plugins/phonebook-ebook.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/phonebook-ebook.c b/plugins/phonebook-ebook.c index 4111b45..903ca58 100644 --- a/plugins/phonebook-ebook.c +++ b/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); |