Skip to content
Snippets Groups Projects
Commit c5007d49 authored by rswindell's avatar rswindell
Browse files

Force node directories to lowercase (on Unix).

parent bf93d0b2
No related branches found
No related tags found
No related merge requests found
......@@ -213,27 +213,12 @@ BOOL read_main_cfg(scfg_t* cfg, char* error)
return(FALSE);
}
#if 0 /* old dynamic way */
if((cfg->node_path=(char **)MALLOC(sizeof(char *)*cfg->sys_nodes))==NULL)
return allocerr(instream,error,offset,fname,sizeof(char *)*cfg->sys_nodes);
for(i=0;i<cfg->sys_nodes;i++) {
if(feof(instream)) break;
fread(str,LEN_DIR+1,1,instream);
prep_dir(cfg->ctrl_dir, str);
offset+=LEN_DIR+1;
if((cfg->node_path[i]=(char *)MALLOC(strlen(str)+1))==NULL)
return allocerr(instream,error,offset,fname,strlen(str)+1);
strcpy(cfg->node_path[i],str);
}
#else
for(i=0;i<cfg->sys_nodes;i++)
get_str(cfg->node_path[i],instream);
#if defined(__unix__)
strlwr(cfg->node_path[i]);
#endif
}
get_str(cfg->data_dir,instream); /* data directory */
get_str(cfg->exec_dir,instream); /* exec directory */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment