summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 70de06b20b..ed51ec8a7f 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -528,6 +528,8 @@ static int write_one_file(Item *i, const char *path) {
}
}
+ close_nointr_nofail(fd);
+
if (stat(path, &st) < 0) {
log_error("stat(%s) failed: %m", path);
return -errno;