path-util: add helper that checks if a path definitely refers to a dir

This commit is contained in:
Lennart Poettering
2024-03-14 09:17:46 +01:00
parent 478dc50266
commit dd92ba8a7a
3 changed files with 40 additions and 0 deletions
+2
View File
@@ -201,6 +201,8 @@ bool valid_device_allow_pattern(const char *path);
bool dot_or_dot_dot(const char *path);
bool path_implies_directory(const char *path);
static inline const char *skip_dev_prefix(const char *p) {
const char *e;