From f3eeb2c93f8e3a2460fca3db48f390d1574d9bdc Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 26 Oct 2012 17:02:29 +0300 Subject: [PATCH] obexd: Fix sending absolute path As per OBEX spec the NAME header should not contain absolute paths --- obexd/client/pbap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c index b17b4f41c..6444605df 100644 --- a/obexd/client/pbap.c +++ b/obexd/client/pbap.c @@ -528,7 +528,7 @@ static DBusMessage *pull_phonebook(struct pbap_data *pbap, DBusMessage *reply; GError *err = NULL; - name = g_strconcat(pbap->path, ".vcf", NULL); + name = g_strconcat(g_path_skip_root(pbap->path), ".vcf", NULL); transfer = obc_transfer_get("x-bt/phonebook", name, targetfile, &err); if (transfer == NULL) { -- 2.47.3