Mailing list config files may now have the suffix ".config" or
".conf". Similarly, if the list config file is in a separate directory, it may be called <listname>/config or <listname>/conf.
This commit is contained in:
parent
ea35e3f74d
commit
5cffe86638
14
tool.c
14
tool.c
@ -143,11 +143,21 @@ isValidListName(const char * listname)
|
||||
if (stat(buffer, &sb) != 0)
|
||||
{
|
||||
free(buffer);
|
||||
buffer = text_easy_sprintf("%s/%s.config", MasterConfig->list_dir, listname);
|
||||
buffer = text_easy_sprintf("%s/%s/conf", MasterConfig->list_dir, listname);
|
||||
if (stat(buffer, &sb) != 0)
|
||||
{
|
||||
free(buffer);
|
||||
return FALSE;
|
||||
buffer = text_easy_sprintf("%s/%s.config", MasterConfig->list_dir, listname);
|
||||
if (stat(buffer, &sb) != 0)
|
||||
{
|
||||
free(buffer);
|
||||
buffer = text_easy_sprintf("%s/%s.conf", MasterConfig->list_dir, listname);
|
||||
if (stat(buffer, &sb) != 0)
|
||||
{
|
||||
free(buffer);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
free(buffer);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user