From d4a4dbe847733d55834ebc60f0678c350fa3ebd5 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 22 Feb 2021 15:41:31 -0800 Subject: Hit an unfriendly assertion if not signing bundle. --- ldid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldid.cpp') 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 -- cgit v1.2.3-56-ge451