From e411eb1b4119ed9abf321712e896360e16a78322 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 2 Jul 2015 13:37:10 -0700 Subject: [PATCH] Use sh to escape package names for fixhalf script. --- Library/fixhalf.sh | 6 ++++++ MobileCydia.mm | 10 +--------- 2 files changed, 7 insertions(+), 9 deletions(-) create mode 100755 Library/fixhalf.sh diff --git a/Library/fixhalf.sh b/Library/fixhalf.sh new file mode 100755 index 00000000..73fcfa99 --- /dev/null +++ b/Library/fixhalf.sh @@ -0,0 +1,6 @@ +#!/bin/bash +rm -f /var/lib/dpkg/info/%@.prerm +rm -f /var/lib/dpkg/info/%@.postrm +rm -f /var/lib/dpkg/info/%@.preinst +rm -f /var/lib/dpkg/info/%@.postinst +rm -f /var/lib/dpkg/info/%@.extrainst_ diff --git a/MobileCydia.mm b/MobileCydia.mm index 8765b7dc..968a67a0 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9344,15 +9344,7 @@ _end @synchronized (self) { for (Package *broken in (id) broken_) { [broken remove]; - NSString *id = [broken id]; - - system([[NSString stringWithFormat:@"/usr/libexec/cydia/cydo /bin/rm -f" - " /var/lib/dpkg/info/%@.prerm" - " /var/lib/dpkg/info/%@.postrm" - " /var/lib/dpkg/info/%@.preinst" - " /var/lib/dpkg/info/%@.postinst" - " /var/lib/dpkg/info/%@.extrainst_" - , id, id, id, id, id] UTF8String]); + system([[NSString stringWithFormat:@"/usr/libexec/cydia/cydo /usr/libexec/cydia/fixhalf.sh %@", [broken id]] UTF8String]); } [self resolve]; -- 2.45.2