xattr-util: modernize getcrtime_at() and friends

- Drop fd_ prefix for openat()-like function
- Make fd_setcrtime() accept O_PATH fds too
- Use statx_timestamp_load()
This commit is contained in:
Mike Yuan
2025-02-09 14:51:03 +01:00
parent a0924d96cb
commit baca3581ea
3 changed files with 93 additions and 96 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ static void patch_realtime(
* FS might provide, but unfortunately there's currently no sane API to query it. Hence let's
* implement this manually... */
if (fd_getcrtime_at(fd, fn, AT_SYMLINK_FOLLOW, &x) >= 0 && x < *realtime)
if (getcrtime_at(fd, fn, AT_SYMLINK_FOLLOW, &x) >= 0 && x < *realtime)
*realtime = x;
}