summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-02 08:23:12 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-02 08:23:12 -0700
commitdb1e5e0dbbf6724f462644ef4987175888ba90b1 (patch)
treea7fecc660484c6d0fdc3e56a5ed6863c39b64954
parent4c66fad9b489e2bda236a1a46c23c64cb774ea05 (diff)
Replace /tmp/cydia.log functionality from the app.
-rw-r--r--MobileCydia.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 8e6fbae..a636eeb 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();