From: Jay Freeman (saurik) Date: Mon, 22 Feb 2021 23:41:31 +0000 (-0800) Subject: Hit an unfriendly assertion if not signing bundle. X-Git-Tag: v2.1.3^0 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/d4a4dbe847733d55834ebc60f0678c350fa3ebd5 Hit an unfriendly assertion if not signing bundle. --- diff --git a/ldid.cpp b/ldid.cpp index 95c49e8..d6b1573 100644 --- 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