binding: pbap: move data transfer results to shared directory 41/22041/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Mon, 29 Jul 2019 21:30:39 +0000 (14:30 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 31 Jul 2019 16:58:52 +0000 (09:58 -0700)
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>
binding/bluetooth-pbap-binding.c

index cf39851..0e0a27c 100644 (file)
@@ -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)