]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/path-util.h
path-util: Add a helper for checking paths
[thirdparty/systemd.git] / src / basic / path-util.h
index 6d88c54d7f0bdad66912d6f9f813ce49e85b7814..368e0001217067dc903d4bf311318edf5211c083 100644 (file)
@@ -68,8 +68,9 @@ static inline bool path_equal_filename(const char *a, const char *b) {
         return path_compare_filename(a, b) == 0;
 }
 
+int path_equal_or_inode_same_full(const char *a, const char *b, int flags);
 static inline bool path_equal_or_inode_same(const char *a, const char *b, int flags) {
-        return path_equal(a, b) || inode_same(a, b, flags) > 0;
+        return path_equal_or_inode_same_full(a, b, flags) > 0;
 }
 
 char* path_extend_internal(char **x, ...);