Menu

#127 default values of list options get "lost" when setting the options manually

main
closed-accepted
None
5
2015-12-01
2014-10-19
Cálestyo
No

Hi.

This is probably only a documentation issue:

When having a value like:
#SUSPSCAN_DIRS=/tmp /var/tmp
which has a default of "/tmp /var/tmp" and which is not explicitly set as such in the default rkhunter.conf...
When I now add e.g.
SUSPSCAN_DIRS="/var/www"
to rkhunter.conf.local, I'd expect that the resulting value is:
SUSPSCAN_DIRS=/tmp /var/tmp /var/www

Just as the documentation section in the beginning says, i.e. when having options that allow it multiple times to be set, the values are concatenated, and only if the option would be set to the null string "", the former values (in this case, the defaults) would get erased.

But apparently the resulting value is just "/var/www".

So it should be documented, that if a value is set explicitly on such multi-value option, defaults are not taken.

Cheers,
Chris.

Discussion

  • John Horne

    John Horne - 2015-12-01

    Okay, I understand that. It makes sense. I have changed the config file comments to include:

    # If a value is set for a configuration option, then the default
    # value is ignored. If it is wished to keep the default value, as well as
    # any other set value, then the default must be explicitly set.
    
     
  • John Horne

    John Horne - 2015-12-01
    • status: open --> closed-accepted
    • assigned_to: John Horne
     
  • John Horne

    John Horne - 2015-12-01

    Fixed in CVS.

     

Log in to post a comment.

MongoDB Logo MongoDB