1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

tmpfiles: plug file descriptor leak.

Introduced in d4e9eb91.
This commit is contained in:
Dave Reisner 2012-09-12 16:21:00 -04:00 committed by Lennart Poettering
parent a8b10efaec
commit 3612fbc1e4

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;