Use findfile instead of findconfig file.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 14 Nov 2006 03:56:10 +0000 (03:56 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Tue, 14 Nov 2006 03:56:10 +0000 (03:56 +0000)
Add filldef to findfile.

git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@734 959494ce-11ee-0310-bf91-de5d638817bd

daemon/main.c

index dddd8f1..6124129 100644 (file)
@@ -460,7 +460,7 @@ int main(int argc, char **argv)
     preinit(0);
     if(configfile == NULL)
     {
-       if((configfile = findconfigfile()) == NULL)
+       if((configfile = findfile("doldacond.conf", "doldacond", NULL, 0)) == NULL)
        {
            flog(LOG_CRIT, "could not find a configuration file");
            exit(1);