time-util: define TIMESPEC_OMIT

Follow-up for 34c3d57474.
This commit is contained in:
Yu Watanabe
2024-05-10 10:11:06 +09:00
parent 41a94ae670
commit c876cbdd19
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ int mkdir_p_root_full(const char *root, const char *p, uid_t uid, gid_t gid, mod
struct timespec tspec;
timespec_store(&tspec, ts);
if (futimens(dfd, (const struct timespec[2]) { { .tv_nsec = UTIME_OMIT }, tspec }) < 0)
if (futimens(dfd, (const struct timespec[2]) { TIMESPEC_OMIT, tspec }) < 0)
return -errno;
if (futimens(nfd, (const struct timespec[2]) { tspec, tspec }) < 0)