summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2020-04-06 09:42:57 -1000
committerSam Bingner <sam@bingner.com>2020-04-08 13:58:02 -1000
commit87cfa306c348a32cdeb646ec6ce283023cfc85f6 (patch)
tree8241b4dfb4c5170e8e25d770339553211320da61
parent22985cb03cf368f77bfea2adf1cddeb91f32fd03 (diff)
Revert "Try to fix strange crash due to metadata.cb0"
This reverts commit a4cb13fd832b72a99d8d68304fe08815ec9e4098.
-rw-r--r--MobileCydia.mm7
1 files changed, 0 insertions, 7 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 231a57a..9fd0a98 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9489,13 +9489,6 @@ int main(int argc, char *argv[]) {
_trace();
mkdir("/var/mobile/Library/Cydia", 0755);
- fd = open("/var/mobile/Library/Cydia/metadata.cb0", O_RDWR | O_CREAT | O_EXLOCK, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
- if (fd == -1) {
- system("/usr/libexec/cydia/cydo /bin/rm -rf /var/mobile/Library/Cydia");
- mkdir("/var/mobile/Library/Cydia", 0755);
- } else {
- close(fd);
- }
MetaFile_.Open("/var/mobile/Library/Cydia/metadata.cb0");
_trace();