Skip to content

Instantly share code, notes, and snippets.

@jeffniblack
Created September 18, 2012 16:00
Show Gist options
  • Save jeffniblack/3743917 to your computer and use it in GitHub Desktop.
Save jeffniblack/3743917 to your computer and use it in GitHub Desktop.
symbolic link check for jailbroken iOS devices
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