]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/sd-journal.c
journal: expand variables up to PATH_MAX in size in catalog output
[thirdparty/systemd.git] / 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)