diff options
-rw-r--r-- | src/journal/journald.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c index ee270e79af..e5bcc26203 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -165,7 +165,8 @@ static uint64_t available_space(Server *s) { if (!de) break; - if (!dirent_is_file_with_suffix(de, ".journal")) + if (!endswith(de->d_name, ".journal") && + !endswith(de->d_name, ".journal~")) continue; if (fstatat(dirfd(d), de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) |