chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
systemd-coredump: Log crashes without coredumps on failure
[elogind.git]
/
src
/
journal
/
journal-vacuum.c
diff --git
a/src/journal/journal-vacuum.c
b/src/journal/journal-vacuum.c
index ace772273b6bedc250c953eb8698194fb4375658..178c8030dbe56b2ef86be90a4a4afbc629545850 100644
(file)
--- a/
src/journal/journal-vacuum.c
+++ b/
src/journal/journal-vacuum.c
@@
-129,8
+129,9
@@
static void patch_realtime(
}
static int journal_file_empty(int dir_fd, const char *name) {
- int
fd,
r;
+ int r;
le64_t n_entries;
+ _cleanup_close_ int fd;
fd = openat(dir_fd, name, O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK);
if (fd < 0)