diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-10-06 19:41:33 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-10-06 19:42:39 +0200 |
commit | 546110ded9c1cc0124e604f209c3f0ef442daaf0 (patch) | |
tree | ff3536e9bbc91f1692e8c734563c4d76b4690d5b /src/libsystemd | |
parent | path-lookup: unify *_generator_binary_paths() (diff) | |
download | systemd-546110ded9c1cc0124e604f209c3f0ef442daaf0.tar.xz systemd-546110ded9c1cc0124e604f209c3f0ef442daaf0.zip |
path-lookup: assert that LOOKUP_PATHS_{EXCLUDE,TEMPORARY}_GENERATED are not used in conjunction
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-path/path-lookup.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |