]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal: expand variables up to PATH_MAX in size in catalog output 15911/head
authorLennart Poettering <lennart@poettering.net>
Mon, 25 May 2020 14:58:06 +0000 (16:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 May 2020 07:17:48 +0000 (09:17 +0200)
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).

src/journal/sd-journal.c

index 9b6c425285e3825ff5c20f1a4a7be458ff375168..80cd80f3568969fbc16042274b1202cccce63df3 100644 (file)
@@ -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)