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).
This commit is contained in:
Lennart Poettering 2020-05-25 16:58:06 +02:00
parent 2c905207db
commit 8dd7cbce42
1 changed files with 3 additions and 1 deletions

View 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)