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

Uses startup->temp_dir (if specified).

parent c45975b7
No related branches found
No related tags found
No related merge requests found
......@@ -4553,8 +4553,11 @@ void DLLCALL ftp_server(void* arg)
if(uptime==0)
uptime=time(NULL); /* this must be done *after* setting the timezone */
/* Use DATA/TEMP for temp dir - should ch'd to be FTP/HOST specific */
prep_dir(scfg.data_dir, scfg.temp_dir, sizeof(scfg.temp_dir));
if(startup->temp_dir[0]) {
SAFECOPY(scfg.temp_dir,startup->temp_dir);
backslash(scfg.temp_dir);
} else
prep_dir(scfg.data_dir, scfg.temp_dir, sizeof(scfg.temp_dir));
if(!startup->max_clients) {
startup->max_clients=scfg.sys_nodes;
......@@ -4727,7 +4730,7 @@ void DLLCALL ftp_server(void* arg)
}
mswait(100);
}
lprintf("000 Done waiting");
lprintf("0000 Done waiting");
}
if(thread_count>1) {
......@@ -4740,7 +4743,7 @@ void DLLCALL ftp_server(void* arg)
}
mswait(100);
}
lprintf("000 Done waiting");
lprintf("0000 Done waiting");
}
cleanup(0,__LINE__);
......
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