From b6b5e9621306f9a5fa7d65624d40fddae64f47ec 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 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) -- cgit 1.2.3-korg