From 5cffe8663813cbc6f61ec3de724f6e4f590f60db Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 19 Jan 2001 13:20:34 +0000 Subject: [PATCH] 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 /config or /conf. --- tool.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tool.c b/tool.c index 1a7ddce..27c0c18 100644 --- a/tool.c +++ b/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);