From ebbc2361609f58791770c3e71dd3355b22eb57ad Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 29 Jul 2019 14:30:39 -0700 Subject: 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 --- binding/bluetooth-pbap-binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/bluetooth-pbap-binding.c b/binding/bluetooth-pbap-binding.c index cf39851..0e0a27c 100644 --- a/binding/bluetooth-pbap-binding.c +++ b/binding/bluetooth-pbap-binding.c @@ -195,7 +195,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) -- cgit 1.2.3-korg