From 4e75840d81afd59696130cff88e8a836a6982f2a Mon Sep 17 00:00:00 2001 From: Sacha Date: Thu, 16 May 2013 13:54:15 +1000 Subject: [PATCH] Fix permissions on Blackberry. Currently only the app can modify/delete important data like saves in PSP folder. On Blackberry, the app is the user account (app_10283782). The currently logged in user is the group (shared_1000). Then other will be all users on the system. So let's make it that the user can modify their own data. --- Common/FileUtil.cpp | 4 ++++ native | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Common/FileUtil.cpp b/Common/FileUtil.cpp index 87075d5ed4..1738571175 100644 --- a/Common/FileUtil.cpp +++ b/Common/FileUtil.cpp @@ -176,8 +176,12 @@ bool CreateDir(const std::string &path) } ERROR_LOG(COMMON, "CreateDir: CreateDirectory failed on %s: %i", path.c_str(), error); return false; +#else +#ifdef BLACKBERRY + if (mkdir(path.c_str(), 0765) == 0) #else if (mkdir(path.c_str(), 0755) == 0) +#endif return true; int err = errno; diff --git a/native b/native index 2078efcb17..f6dd98570b 160000 --- a/native +++ b/native @@ -1 +1 @@ -Subproject commit 2078efcb17dbc96931f103ce68d72be2ea4d295a +Subproject commit f6dd98570bc65b83d6674aab66fee0b00730b012