From 5ac03a4edd098926de61c38c79ea3933ef6064ef Mon Sep 17 00:00:00 2001 From: Memphiz Date: Sun, 18 Oct 2015 18:03:49 +0200 Subject: [ios] - adapt IsIosSandboxd for iOS8 and later (apple moved to container directory) --- xbmc/osx/DarwinUtils.mm | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit v1.2.3