]> git.saurik.com Git - cydia.git/commitdiff
Replace /tmp/cydia.log functionality from the app.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 2 Jul 2015 15:23:12 +0000 (08:23 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 2 Jul 2015 15:23:12 +0000 (08:23 -0700)
MobileCydia.mm

index 8e6fbae56103f2b78ee4f8fdbfe1f2660059fc64..a636eeb5ad23a10b7089821e9a32941e25bba2ab 100644 (file)
@@ -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();