From: Matt Ranostay Date: Mon, 29 Jul 2019 21:30:39 +0000 (-0700) Subject: binding: pbap: move data transfer results to shared directory X-Git-Tag: 8.99.1~4 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F22019%2F2;p=apps%2Fagl-service-bluetooth-pbap.git binding: pbap: move data transfer results to shared directory Data transfers needs to be stored in /run/user/UID/usrshr to get the User::App-Shared Smack label on creation from obexd Bug-AGL: SPEC-2695 Change-Id: Ib32b1d02bb008311bbad975263af28452bf1647e Signed-off-by: Matt Ranostay --- diff --git a/binding/bluetooth-pbap-binding.c b/binding/bluetooth-pbap-binding.c index 5b23d6d..e2f5c55 100644 --- a/binding/bluetooth-pbap-binding.c +++ b/binding/bluetooth-pbap-binding.c @@ -198,7 +198,7 @@ static void get_filename(gchar *filename) strftime(buffer, 26, "%Y%m%d%H%M%S", tm_info); - sprintf(filename, "/tmp/vcard-%s%03ld.dat", buffer, ms); + sprintf(filename, "/run/user/%d/usrshr/vcard-%s%03ld.dat", getuid(), buffer, ms); } static gchar *pull_vcard(const gchar *handle)