From: Jay Freeman (saurik) Date: Thu, 30 Oct 2014 07:45:15 +0000 (-0700) Subject: "shell-init: error retrieving current directory". X-Git-Tag: v1.1.14~7 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/3c2ecf2b7d112da637aa741365c2685d93f282a5?hp=58206bd88c379ea9e9744467d111cc59675e220c "shell-init: error retrieving current directory". --- diff --git a/postinst.mm b/postinst.mm index 7c2fb683..10988bb7 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"); }