summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-25 16:58:06 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-26 09:17:48 +0200
commit8dd7cbce42ba3fb31482964a9c0e772a5b5f5d0a (patch)
treeb58ce57dfe907204bc1f0d45fb0dc0aad79281f8
parent2c905207db37c691d4abef868165ad5ea2dd0f4f (diff)
downloadsystemd-8dd7cbce42ba3fb31482964a9c0e772a5b5f5d0a.tar.gz
journal: expand variables up to PATH_MAX in size in catalog output
It makes sense to be able to output every officially valid path, hence bump the variable size limit in catalog entries to 4K (i.e. PATH_MAX).
-rw-r--r--src/journal/sd-journal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 9b6c425285..80cd80f356 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -45,7 +45,9 @@
#define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC)
-#define REPLACE_VAR_MAX 256
+/* The maximum size of variable values we'll expand in catalog entries. We bind this to PATH_MAX for now, as
+ * we want to be able to show all officially valid paths at least */
+#define REPLACE_VAR_MAX PATH_MAX
#define DEFAULT_DATA_THRESHOLD (64*1024)