Modify the generated file permission to 0644 60/139060/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 17 Jul 2017 06:11:14 +0000 (15:11 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 17 Jul 2017 06:11:14 +0000 (15:11 +0900)
Tizen will handle the access permission to the file
using group and privilege.

Change-Id: I7ea181fa92cff5d0489503eed62f9ed593ffd1b6
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
obexd/client/transfer.c

index a5ecd13..c7f27c3 100755 (executable)
@@ -555,7 +555,12 @@ struct obc_transfer *obc_transfer_get(const char *type, const char *name,
 
        transfer = obc_transfer_create(G_OBEX_OP_GET, filename, name, type);
 
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+       perr = transfer_open(transfer, O_WRONLY | O_CREAT | O_TRUNC, 0644, err);
+#else
        perr = transfer_open(transfer, O_WRONLY | O_CREAT | O_TRUNC, 0600, err);
+#endif
+
        if (perr < 0) {
                obc_transfer_free(transfer);
                return NULL;