summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-10-26 17:02:29 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-10-26 17:02:29 +0300
commit01636c0964a54f20262ab506299602deb9e85a0a (patch)
treed9ef9568feb59def26058d54c4e891ec2674f390
parent2281d4fac9fec97993b0a6dc0e2ec42911eac194 (diff)
downloadobexd-01636c0964a54f20262ab506299602deb9e85a0a.tar.gz
PBAP: Fix sending absolute path
As per OBEX spec the NAME header should not contain absolute paths
-rw-r--r--client/pbap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/pbap.c b/client/pbap.c
index b17b4f4..6444605 100644
--- a/client/pbap.c
+++ b/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) {