Commit 3612fbc1 authored by Dave Reisner's avatar Dave Reisner Committed by Lennart Poettering

tmpfiles: plug file descriptor leak.

Introduced in d4e9eb91.
parent a8b10efa
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment