Closed pmoravec closed 3 years ago
Oof, that's a rough one. Good find though.
This came about because in Component.apply_options_from_cmdline()
was checking for if val
. Well in almost all cases that's right, but for log-size=0
that (now obviously) won't fly. So we can change that to if val is not None
, which is what should be the null value for anything coming from argparse.
I've opened #2335 for this, let's get some testing on this to make sure we're copacetic with the change.
Reproducer: have a huge
/var/log/messages
and call:Then the zero value is lost during:
and the default logsize limit is applied.