]> git.saurik.com Git - ldid.git/commitdiff
Hit an unfriendly assertion if not signing bundle. v2.1.3
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 22 Feb 2021 23:41:31 +0000 (15:41 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 22 Feb 2021 23:41:31 +0000 (15:41 -0800)
ldid.cpp

index 95c49e8484bd89906c5ffe05dfc75155bf30731f..d6b1573d29bfa829264f97ce6d254c80b7990082 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -3145,9 +3145,9 @@ int main(int argc, char *argv[]) {
         struct stat info;
         _syscall(stat(path.c_str(), &info));
 
-        if (flag_S && S_ISDIR(info.st_mode)) {
+        if (S_ISDIR(info.st_mode)) {
+            _assert(flag_S);
 #ifndef LDID_NOPLIST
-            _assert(!flag_r);
             ldid::DiskFolder folder(path + "/");
             path += "/" + Sign("", folder, key, requirements, ldid::fun([&](const std::string &, const std::string &) -> std::string { return entitlements; }), dummy_).path;
 #else