journal: be fine with opening rotated/corrupted journal files
This commit is contained in:
parent
f982e6f761
commit
a010801297
|
@ -1957,7 +1957,8 @@ int journal_file_open(
|
|||
(flags & O_ACCMODE) != O_RDWR)
|
||||
return -EINVAL;
|
||||
|
||||
if (!endswith(fname, ".journal"))
|
||||
if (!endswith(fname, ".journal") &&
|
||||
!endswith(fname, ".journal~"))
|
||||
return -EINVAL;
|
||||
|
||||
f = new0(JournalFile, 1);
|
||||
|
|
Loading…
Reference in a new issue