X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fconf.c;h=6fd317bd25dae81eb4d6ffa641a33315dc90a9de;hb=8b93008567ad48a8c79d57da3ea27e91d7173472;hp=ea3229e43056384dc2ce26e5e2d636615f1ef63d;hpb=d3372da97568d5e1f35fa19787c8ec8af93a0435;p=doldaconnect.git diff --git a/daemon/conf.c b/daemon/conf.c index ea3229e..6fd317b 100644 --- a/daemon/conf.c +++ b/daemon/conf.c @@ -271,36 +271,6 @@ int runconfcmd(int argc, wchar_t **argv) return(ret); } -char *findconfigfile(void) -{ - static char pathbuf[128]; - char *p, *p2; - - if(getenv("HOME") != NULL) - { - snprintf(pathbuf, sizeof(pathbuf), "%s/.doldacond", getenv("HOME")); - if(!access(pathbuf, R_OK)) - return(pathbuf); - } - p = CONFIG_PATH; - do - { - p2 = strchr(p, ':'); - if(p2 != NULL) - { - memcpy(pathbuf, p, p2 - p); - pathbuf[p2 - p] = 0; - if(!access(pathbuf, R_OK)) - return(pathbuf); - } else { - if(!access(p, R_OK)) - return(p); - } - p = p2 + 1; - } while(p2 != NULL); - return(NULL); -} - void readconfig(FILE *stream) { int state;