db28f4 journal-file: avoid calling ftruncate with invalid fd

1 file Authored by David Tardon 4 years ago, Committed by Packit Service 4 years ago,
    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
    
    patch_name: 0033-journal-file-avoid-calling-ftruncate-with-invalid-fd.patch
    present_in_specfile: true
    location_in_specfile: 33
    squash_commits: true
    
        
file modified
+3 -0