From 3c2ecf2b7d112da637aa741365c2685d93f282a5 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 30 Oct 2014 00:45:15 -0700 Subject: "shell-init: error retrieving current directory". --- postinst.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'postinst.mm') 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"); } -- cgit v1.2.3