mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
util: always override crtime xattr
This commit is contained in:
parent
6389e747d5
commit
2c39ea529b
@ -7645,7 +7645,7 @@ int fd_setcrtime(int fd, usec_t usec) {
|
||||
assert(fd >= 0);
|
||||
|
||||
le = htole64((uint64_t) usec);
|
||||
if (fsetxattr(fd, "user.crtime_usec", &le, sizeof(le), XATTR_CREATE) < 0)
|
||||
if (fsetxattr(fd, "user.crtime_usec", &le, sizeof(le), 0) < 0)
|
||||
return -errno;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user