aboutsummaryrefslogtreecommitdiffstats
path: root/binding/bluetooth-pbap-binding.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-07-29 14:30:39 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-07-29 18:40:17 -0700
commitb6b5e9621306f9a5fa7d65624d40fddae64f47ec (patch)
tree4026cc524e4ff2e63ebab7d6755d01c5d31b3aba /binding/bluetooth-pbap-binding.c
parent21edc208826a4b654b533d47bb0281637ae270f5 (diff)
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/bluetooth-pbap-binding.c')
-rw-r--r--binding/bluetooth-pbap-binding.c2
1 files changed, 1 insertions, 1 deletions
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)