From: Lennart Poettering Date: Mon, 25 May 2020 14:58:06 +0000 (+0200) Subject: journal: expand variables up to PATH_MAX in size in catalog output X-Git-Tag: v246-rc1~255^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dd7cbce42ba3fb31482964a9c0e772a5b5f5d0a;p=thirdparty%2Fsystemd.git 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). --- diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 9b6c425285e..80cd80f3568 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)