]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journal-file.c
journal-file: avoid calling ftruncate with invalid fd
authorDavid Tardon <dtardon@redhat.com>
Wed, 10 Oct 2018 11:56:54 +0000 (13:56 +0200)
committerDavid Tardon <dtardon@redhat.com>
Fri, 12 Oct 2018 12:51:35 +0000 (14:51 +0200)
commitc52368509f48e556be5a4c7a171361b656a25e02
tree6cfba0de51220c9003fb164f97090570f675c461
parent0b777d20e9a3868b12372ffce8040d1be063cec7
journal-file: avoid calling ftruncate with invalid fd

This can happen if journal_file_close is called from the failure
handling code of journal_file_open before f->fd was established.
src/journal/journal-file.c