diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 08:23:12 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 08:23:12 -0700 |
commit | db1e5e0dbbf6724f462644ef4987175888ba90b1 (patch) | |
tree | a7fecc660484c6d0fdc3e56a5ed6863c39b64954 /MobileCydia.mm | |
parent | 4c66fad9b489e2bda236a1a46c23c64cb774ea05 (diff) |
Replace /tmp/cydia.log functionality from the app.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 4 |
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(); |