X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fpath-util.c;h=12d1ec321f174619183f1423cbdf5f83c2389e90;hb=587fec427c80b6c34dcf1d7570f891fcb652a7c5;hp=b9db7f1047ab8c6e31b970a63cb9188c7b6a3ef3;hpb=63c372cb9df3bee01e3bf8cd7f96f336bddda846;p=elogind.git diff --git a/src/shared/path-util.c b/src/shared/path-util.c index b9db7f104..12d1ec321 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -19,15 +19,12 @@ along with systemd; If not, see . ***/ -#include #include #include #include #include -#include #include #include -#include #include #include "macro.h" @@ -436,6 +433,10 @@ bool path_equal(const char *a, const char *b) { } } +bool path_equal_or_files_same(const char *a, const char *b) { + return path_equal(a, b) || files_same(a, b) > 0; +} + char* path_join(const char *root, const char *path, const char *rest) { assert(path);