diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-27 18:58:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-27 19:35:57 +0200 |
commit | cfc194575baaed980e4d4e947ec9d456ebf07838 (patch) | |
tree | 0ee68e428db551b2ee8334dfc03e7652fc600d6e /src/journal | |
parent | 229811628584b370e3fa7e8524d66be46c5a4661 (diff) |
coredump: fix how the compression level is verified
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/coredump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/journal/coredump.c b/src/journal/coredump.c index 22e1932e2b..7e11cea4f1 100644 --- a/src/journal/coredump.c +++ b/src/journal/coredump.c @@ -129,12 +129,12 @@ static off_t arg_keep_free = (off_t) -1; static off_t arg_max_use = (off_t) -1; static int parse_config(void) { + int r; static const ConfigTableItem items[] = { { "Coredump", "Storage", config_parse_coredump_storage, 0, &arg_storage }, { "Coredump", "Compression", config_parse_coredump_compression, 0, &arg_compression }, { "Coredump", "CompressionLevel", config_parse_unsigned, 0, &arg_compression_level }, - { "Coredump", "ProcessSizeMax", config_parse_iec_off, 0, &arg_process_size_max }, { "Coredump", "ExternalSizeMax", config_parse_iec_off, 0, &arg_external_size_max }, { "Coredump", "JournalSizeMax", config_parse_iec_size, 0, &arg_journal_size_max }, @@ -143,7 +143,7 @@ static int parse_config(void) { {} }; - return config_parse( + r = config_parse( NULL, "/etc/systemd/coredump.conf", NULL, @@ -160,6 +160,8 @@ static int parse_config(void) { arg_compression_level = LZMA_PRESET_DEFAULT; } #endif + + return r; } static int fix_acl(int fd, uid_t uid) { |