]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal-file: avoid calling ftruncate with invalid fd
authorDavid Tardon <dtardon@redhat.com>
Wed, 10 Oct 2018 11:56:54 +0000 (13:56 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 29 Oct 2018 09:46:41 +0000 (10:46 +0100)
commitebdb96247433d920b391672e019da9402aabd351
tree6207feb623dc91b2329069bbb12ef617c3822610
parentfbe394e9166ddfe847dcac0eab0fcbd3c225dc33
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.

(cherry picked from commit c52368509f48e556be5a4c7a171361b656a25e02)

Resolves: #1602706
src/journal/journal-file.c