AntiPiracy
AntiPiracy copied to clipboard
stat("/etc/fstab", &sb) return -1
I'm testing your library in my project. In development mode, iOS8 device, no jailbreak, I have a fail in fstabCheck function: stat("/etc/fstab", &sb) return -1 so the subsequent sb.st_size return a meaningless value other than 80.
Why I obtain -1? It's safe add the following?
int result = stat("/etc/fstab", &sb); if(result == -1) { return NOTJAIL; }
thank you, giorgio
Hello @giofid,
That is a great question.
This change came with the update to iOS 9. Developers are no longer able to obtain the size of fstab - likely due to the sandbox limiting access to the file. For now, we're going to remove this check for iOS 9+ until we can find a suitable replacement.
Thanks, Shmoopi
Thanks for your answer!! Is there an updated version of library that supports iOS9?
Giorgio