diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-09-12 16:21:00 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-13 00:10:35 +0200 |
commit | 3612fbc1e4ae57af0783cc82a56917bcd29a0431 (patch) | |
tree | c27081fafea005ed2308d857d908cb83a08f857e /src | |
parent | a8b10efaec5005b8e4fcc2bebdf86993ad14993d (diff) |
tmpfiles: plug file descriptor leak.
Introduced in d4e9eb91.
Diffstat (limited to 'src')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
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; |