summaryrefslogtreecommitdiffstats
path: root/src/basic/xattr-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/xattr-util.c')
-rw-r--r--src/basic/xattr-util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/basic/xattr-util.c b/src/basic/xattr-util.c
index 7bb5b3f6df..ebd620604e 100644
--- a/src/basic/xattr-util.c
+++ b/src/basic/xattr-util.c
@@ -8,6 +8,7 @@
#include <sys/xattr.h>
#include "alloc-util.h"
+#include "errno-util.h"
#include "fd-util.h"
#include "macro.h"
#include "missing_syscall.h"
@@ -202,10 +203,7 @@ int fd_setcrtime(int fd, usec_t usec) {
usec = now(CLOCK_REALTIME);
le = htole64((uint64_t) usec);
- if (fsetxattr(fd, "user.crtime_usec", &le, sizeof(le), 0) < 0)
- return -errno;
-
- return 0;
+ return RET_NERRNO(fsetxattr(fd, "user.crtime_usec", &le, sizeof(le), 0));
}
int listxattr_at_malloc(