From 57015dac9e33a6b688506426df49cd10c98fd3db Mon Sep 17 00:00:00 2001 From: Harald Schmitt Date: Wed, 18 Jul 2012 16:53:07 +0200 Subject: [PATCH] obexd: Fix phonebook contacts query At the moment IRMC fails to connect for phonebook_ebook and phonebook_tracker usage because the name parameter for phonebook_pull is not an absolute path. --- obexd/plugins/irmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obexd/plugins/irmc.c b/obexd/plugins/irmc.c index 87f3b6c96..2283fe6e8 100644 --- a/obexd/plugins/irmc.c +++ b/obexd/plugins/irmc.c @@ -226,7 +226,7 @@ static void *irmc_connect(struct obex_session *os, int *err) param->maxlistcount = 0; /* to count the number of vcards... */ param->filter = 0x200085; /* UID TEL N VERSION */ irmc->params = param; - irmc->request = phonebook_pull("telecom/pb.vcf", irmc->params, + irmc->request = phonebook_pull("/telecom/pb.vcf", irmc->params, phonebook_size_result, irmc, err); ret = phonebook_pull_read(irmc->request); if (err) @@ -312,7 +312,7 @@ static void *irmc_open_pb(const char *name, struct irmc_session *irmc, if (!g_strcmp0(name, ".vcf")) { /* how can we tell if the vcard count call already finished? */ - irmc->request = phonebook_pull("telecom/pb.vcf", irmc->params, + irmc->request = phonebook_pull("/telecom/pb.vcf", irmc->params, query_result, irmc, &ret); if (ret < 0) { DBG("phonebook_pull failed..."); -- 2.47.3