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

bulk upload appeared to allow maxfiles+1 in a dir

parent e9ee189f
No related branches found
No related tags found
No related merge requests found
...@@ -522,7 +522,7 @@ bool sbbs_t::bulkupload(uint dirnum) ...@@ -522,7 +522,7 @@ bool sbbs_t::bulkupload(uint dirnum)
SYNC; SYNC;
dir=opendir(path); dir=opendir(path);
while((dirent=readdir(dir))!=NULL && !msgabort()) { while((dirent=readdir(dir))!=NULL && !msgabort()) {
if(gettotalfiles(dirnum)>cfg.dir[dirnum]->maxfiles) { if(getfiles(&cfg,dirnum)>=cfg.dir[dirnum]->maxfiles) {
bputs(text[DirFull]); bputs(text[DirFull]);
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment