From a0108012974558c5a7dcf8c76456be6a07b0e95d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 17 Aug 2012 22:10:36 +0200 Subject: journal: be fine with opening rotated/corrupted journal files --- src/journal/journal-file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 4d7a6ff17d..08d4285d0e 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -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); -- cgit v1.2.3-54-g00ecf