Red Hat Bugzilla – Bug 490125
warnquota.c config parsing bug
Last modified: 2009-03-16 15:43:10 EDT
Description of problem:
small bug in config file parsing makes config example always fail with LDAP_MAIL = true.
the problem is in warnquota.c on line 800:
if(strcasecmp(value, "true") == 0)
since the example is:
LDAP_MAIL = false # or false if you don't want to use it
people will usually just change the false to true. This is not going to work since the variable "value" contains the string "true # or false if you don't want to use it".
removing the comment fixes it temporarily, better would be using
if(strncasecmp(value, "true", 4) == 0)
which will ignore everything after "true".
The same bug is in 3.13 as found in EL5
Version-Release number of selected component (if applicable):
quota-3.13-126.96.36.199 (for EL5)
Steps to Reproduce:
use a quota package with compiled in ldapmail support (see bug #490106), and just replace the false with true in the LDAP_MAIL line in the config file
Thanks for report/suggestion, fixed in Rawhide again ... built as quota-3.17-4.fc11 ... will be part of next F-10 quota update with #490106 fix... closing RAWHIDE now...
quota-3.16-7.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.