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:
Peter Simons 2001-01-19 13:20:34 +00:00
parent ea35e3f74d
commit 5cffe86638

14
tool.c
View File

@ -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);