From 546110ded9c1cc0124e604f209c3f0ef442daaf0 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sun, 6 Oct 2024 19:41:33 +0200 Subject: [PATCH] path-lookup: assert that LOOKUP_PATHS_{EXCLUDE,TEMPORARY}_GENERATED are not used in conjunction --- src/libsystemd/sd-path/path-lookup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsystemd/sd-path/path-lookup.c b/src/libsystemd/sd-path/path-lookup.c index 2e59dca235b..63251444076 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) -- 2.47.3