summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldid.cpp4
1 files changed, 2 insertions, 2 deletions
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