tree-wide: set SD_JOURNAL_ASSUME_IMMUTABLE where appropriate

Co-authored-by: Costa Tsaousis <costa@netdata.cloud>
This commit is contained in:
Yu Watanabe
2024-02-12 02:42:36 +09:00
co-authored by Costa Tsaousis
parent bd1af1d5fb
commit f7f062bf9f
15 changed files with 49 additions and 42 deletions
+1 -1
View File
@@ -1597,7 +1597,7 @@ static int show_logs(const LinkInfo *info) {
if (arg_lines == 0)
return 0;
r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY);
r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY | SD_JOURNAL_ASSUME_IMMUTABLE);
if (r < 0)
return log_error_errno(r, "Failed to open journal: %m");