diff options
Diffstat (limited to 'fixPermissions.cpp')
-rw-r--r-- | fixPermissions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fixPermissions.cpp b/fixPermissions.cpp index 121fe32fe..b98a8c7f5 100644 --- a/fixPermissions.cpp +++ b/fixPermissions.cpp @@ -117,6 +117,10 @@ int fixPermissions::fixDataInternalContexts(void) { dir = "/data/media/0"; else dir = "/data/media"; + if (!TWFunc::Path_Exists(dir)) { + LOGINFO("fixDataInternalContexts: '%s' does not exist!\n", dir.c_str()); + return 0; + } LOGINFO("Fixing %s contexts\n", dir.c_str()); restorecon(dir, &sb); d = opendir(dir.c_str()); |