aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2015-10-18 18:03:49 +0200
committerMemphiz <memphis@machzwo.de>2015-10-18 18:03:49 +0200
commit5ac03a4edd098926de61c38c79ea3933ef6064ef (patch)
treede4509a5641692ec45715ef36b092ccd005e6e24
parent6f6c3eb974298467ceb766e7175eb2d4f7fddd82 (diff)
[ios] - adapt IsIosSandboxd for iOS8 and later (apple moved to container directory)
-rw-r--r--xbmc/osx/DarwinUtils.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/xbmc/osx/DarwinUtils.mm b/xbmc/osx/DarwinUtils.mm
index 76b62673e1..c4f71fed6c 100644
--- a/xbmc/osx/DarwinUtils.mm
+++ b/xbmc/osx/DarwinUtils.mm
@@ -436,6 +436,14 @@ bool CDarwinUtils::IsIosSandboxed(void)
{
ret = 1;
}
+
+ // since ios8 the sandbox filesystem has moved to container approach
+ // we are also sandboxed if this is our bundle path
+ if (strlen("/var/mobile/Containers/Bundle/") < path_size &&
+ strncmp(given_path, "/var/mobile/Containers/Bundle/", strlen("/var/mobile/Containers/Bundle/")) == 0)
+ {
+ ret = 1;
+ }
}
}
return ret == 1;