summaryrefslogtreecommitdiff
path: root/src/basic/path-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-01-07 16:24:33 +0100
committerLennart Poettering <lennart@poettering.net>2020-01-09 11:17:21 +0100
commit3841fee822184d8df8d00d47b9143cdfcad49087 (patch)
tree2abeb5dd62ff084b5655acea83a228b3954c9c46 /src/basic/path-util.h
parent125c7814fa50d1459b515180bc6a698b0e56bc61 (diff)
downloadsystemd-3841fee822184d8df8d00d47b9143cdfcad49087.tar.gz
path-util: introduce path_strv_contains() helper
it's like strv_contains() but uses path_equal() rather than streq() to compare strings.
Diffstat (limited to 'src/basic/path-util.h')
-rw-r--r--src/basic/path-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/path-util.h b/src/basic/path-util.h
index 111d85d445..3e8c12481b 100644
--- a/src/basic/path-util.h
+++ b/src/basic/path-util.h
@@ -181,3 +181,5 @@ bool empty_or_root(const char *root);
static inline const char *empty_to_root(const char *path) {
return isempty(path) ? "/" : path;
}
+
+bool path_strv_contains(char **l, const char *path);