binding: pbap: move data transfer results to shared directory 19/22019/2
authorMatt Ranostay <matt.ranostay@konsulko.com>
Mon, 29 Jul 2019 21:30:39 +0000 (14:30 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Tue, 30 Jul 2019 01:40:17 +0000 (18:40 -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 5b23d6d..e2f5c55 100644 (file)
@@ -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)