AntiPiracy icon indicating copy to clipboard operation
AntiPiracy copied to clipboard

stat("/etc/fstab", &sb) return -1

Open giofid opened this issue 10 years ago • 2 comments

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

giofid avatar Nov 17 '15 12:11 giofid

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

Shmoopi avatar Nov 18 '15 16:11 Shmoopi

Thanks for your answer!! Is there an updated version of library that supports iOS9?

Giorgio

giofid avatar Dec 16 '15 16:12 giofid