tree-wide: port various places over to new stat_inode_same() helper

This commit is contained in:
Lennart Poettering
2022-02-14 17:27:14 +01:00
parent 38db6211b5
commit a9dac7a6dd
10 changed files with 20 additions and 37 deletions
+1 -2
View File
@@ -185,8 +185,7 @@ int files_same(const char *filea, const char *fileb, int flags) {
if (fstatat(AT_FDCWD, fileb, &b, flags) < 0)
return -errno;
return a.st_dev == b.st_dev &&
a.st_ino == b.st_ino;
return stat_inode_same(&a, &b);
}
bool is_fs_type(const struct statfs *s, statfs_f_type_t magic_value) {