path-util: introduce path_strv_contains() helper
it's like strv_contains() but uses path_equal() rather than streq() to compare strings.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user