diff --git a/src/libsystemd/sd-path/path-lookup.c b/src/libsystemd/sd-path/path-lookup.c index 2e59dca235..6325144407 100644 --- a/src/libsystemd/sd-path/path-lookup.c +++ b/src/libsystemd/sd-path/path-lookup.c @@ -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)