summaryrefslogtreecommitdiff
path: root/postinst.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-02 03:02:31 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-02 03:02:31 -0700
commit0c0a966bea2bf3b32d0a5abb2658dd22215e9c7f (patch)
tree2fb82e58427fb63e46425919e3b7b4b2eec82a6c /postinst.mm
parent232b396b15248b956dd18092649f378b0db8bd4d (diff)
Trust in the mobile permissions on Cydia's caches.
Diffstat (limited to 'postinst.mm')
-rw-r--r--postinst.mm6
1 files changed, 2 insertions, 4 deletions
diff --git a/postinst.mm b/postinst.mm
index 11d70dc..45a7da3 100644
--- a/postinst.mm
+++ b/postinst.mm
@@ -229,11 +229,9 @@ int main(int argc, const char *argv[]) {
#define NewCache_ "/var/mobile/Library/Caches/com.saurik.Cydia"
system("cd /; su -c 'mkdir -p " NewCache_ "' mobile");
-
- if (access(NewCache_ "/lists", F_OK) != 0 && errno == ENOENT) {
+ if (access(NewCache_ "/lists", F_OK) != 0 && errno == ENOENT)
system("cp -at " NewCache_ " /var/lib/apt/lists");
- system("chown -R 501.501 " NewCache_ "/lists");
- }
+ system("chown -R 501.501 " NewCache_);
#define OldLibrary_ "/var/lib/cydia"