summaryrefslogtreecommitdiff
path: root/postinst.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-30 00:45:15 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-30 00:45:15 -0700
commit3c2ecf2b7d112da637aa741365c2685d93f282a5 (patch)
tree9d3d5accfb7fa2737fa0a14022c7ee4967b56a97 /postinst.mm
parent58206bd88c379ea9e9744467d111cc59675e220c (diff)
"shell-init: error retrieving current directory".
Diffstat (limited to 'postinst.mm')
-rw-r--r--postinst.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/postinst.mm b/postinst.mm
index 7c2fb68..10988bb 100644
--- a/postinst.mm
+++ b/postinst.mm
@@ -174,7 +174,7 @@ int main(int argc, const char *argv[]) {
#define NewCache_ "/var/mobile/Library/Caches/com.saurik.Cydia"
if (access(NewCache_ "/lists", F_OK) != 0 && errno == ENOENT) {
- system("su -c 'mkdir -p " NewCache_ "' mobile");
+ system("cd /; su -c 'mkdir -p " NewCache_ "' mobile");
system("cp -at " NewCache_ " /var/lib/apt/lists");
system("chown -R 501.501 " NewCache_ "/lists");
}