MCPcopy Create free account
hub / github.com/3proxy/3proxy / confopen

Function confopen

src/conf.c:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37char * curconf = NULL;
38
39FILE * confopen(){
40 curconf = conf.conffile;
41#ifndef _WIN32
42 if(chrootp){
43 if(strstr(curconf, chrootp) == curconf)
44 curconf += strlen(chrootp);
45 }
46#endif
47 if(writable) {
48 rewind(writable);
49 return writable;
50 }
51 return fopen(curconf, "r");
52}
53
54
55#ifdef _WIN32

Callers 3

WinMainFunction · 0.85
adminchildFunction · 0.85
reloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected