Created
September 18, 2012 16:00
-
-
Save jeffniblack/3743917 to your computer and use it in GitHub Desktop.
symbolic link check for jailbroken iOS devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static inline int | |
symbolic_link_check(void) | |
__attribute__((always_inline)); | |
int symbolic_link_check(void) { | |
struct stat sb; | |
int result = 0; | |
if (lstat("/Applications", &sb) == 0) { | |
if (sb.st_mode & S_IFLNK) { | |
result = 1; | |
} | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment