diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 03:02:31 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 03:02:31 -0700 |
commit | 0c0a966bea2bf3b32d0a5abb2658dd22215e9c7f (patch) | |
tree | 2fb82e58427fb63e46425919e3b7b4b2eec82a6c /cydo.cpp | |
parent | 232b396b15248b956dd18092649f378b0db8bd4d (diff) |
Trust in the mobile permissions on Cydia's caches.
Diffstat (limited to 'cydo.cpp')
-rw-r--r-- | cydo.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,7 +3,14 @@ int main(int argc, char *argv[]) { setuid(0); setgid(0); - argv[0] = "/usr/bin/dpkg"; + + if (argc < 2 || argv[1][0] != '/') + argv[0] = "/usr/bin/dpkg"; + else { + --argc; + ++argv; + } + execv(argv[0], argv); return 1; } |