--- tool.c 2001/01/18 20:30:50 1.5
+++ tool.c 2001/01/19 13:20:34 1.6
@@ -1,6 +1,6 @@
/*
$Source: /v/ossp/cvs/ossp-pkg/petidomo/tool.c,v $
- $Revision: 1.5 $
+ $Revision: 1.6 $
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
@@ -143,11 +143,21 @@
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);
|