diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-07-29 14:30:39 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-07-31 09:58:52 -0700 |
commit | ebbc2361609f58791770c3e71dd3355b22eb57ad (patch) | |
tree | e638a4282e1193d799400db5eacd921ca1ba058d | |
parent | 38ae9145fb01cde56c2192f3383627b4082f7b40 (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>
-rw-r--r-- | binding/bluetooth-pbap-binding.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |