From: Jay Freeman (saurik) Date: Thu, 2 Jul 2015 15:23:12 +0000 (-0700) Subject: Replace /tmp/cydia.log functionality from the app. X-Git-Tag: v1.1.19~11 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/db1e5e0dbbf6724f462644ef4987175888ba90b1 Replace /tmp/cydia.log functionality from the app. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 8e6fbae5..a636eeb5 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10068,6 +10068,10 @@ MSHook(id, NSUserDefaults$objectForKey$, NSUserDefaults *self, SEL _cmd, NSStrin } int main(int argc, char *argv[]) { + int fd(open("/tmp/cydia.log", O_WRONLY | O_APPEND | O_CREAT, 0644)); + dup2(fd, 2); + close(fd); + NSAutoreleasePool *pool([[NSAutoreleasePool alloc] init]); _trace();