path-lookup: assert that LOOKUP_PATHS_{EXCLUDE,TEMPORARY}_GENERATED are not used in conjunction

This commit is contained in:
Mike Yuan
2024-10-06 19:42:39 +02:00
parent cfda202fa9
commit 546110ded9
+1
View File
@@ -417,6 +417,7 @@ int lookup_paths_init(
assert(lp);
assert(scope >= 0);
assert(scope < _RUNTIME_SCOPE_MAX);
assert(!FLAGS_SET(flags, LOOKUP_PATHS_EXCLUDE_GENERATED|LOOKUP_PATHS_TEMPORARY_GENERATED));
if (!empty_or_root(root_dir)) {
if (scope == RUNTIME_SCOPE_USER)