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.
This commit is contained in:
Sacha 2013-05-16 13:54:15 +10:00
parent 240c504869
commit 4e75840d81
2 changed files with 5 additions and 1 deletions

View file

@ -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;

2
native

@ -1 +1 @@
Subproject commit 2078efcb17dbc96931f103ce68d72be2ea4d295a
Subproject commit f6dd98570bc65b83d6674aab66fee0b00730b012