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

md() only calls lprintf if it failed to create the directory.

parent 41026573
No related branches found
No related tags found
No related merge requests found
......@@ -269,10 +269,9 @@ BOOL md(char *inpath)
dir=opendir(path);
if(dir==NULL) {
lprintf("Creating directory: %s",path);
/* lprintf("Creating directory: %s",path); */
if(MKDIR(path)) {
lprintf("!Error %d: Fix configuration or make directory by "
"hand.",errno);
lprintf("!ERROR %d creating directory: %s",errno,path);
return(FALSE);
}
}
......
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