tmpfiles: plug file descriptor leak.

Introduced in d4e9eb91.
This commit is contained in:
Dave Reisner
2012-09-13 00:10:35 +02:00
committed by Lennart Poettering
parent a8b10efaec
commit 3612fbc1e4
+2
View File
@@ -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;