Commit 3c9e03fc authored by rswindell's avatar rswindell
Browse files

bulk upload appeared to allow maxfiles+1 in a dir

parent e9ee189f
......@@ -522,7 +522,7 @@ bool sbbs_t::bulkupload(uint dirnum)
SYNC;
dir=opendir(path);
while((dirent=readdir(dir))!=NULL && !msgabort()) {
if(gettotalfiles(dirnum)>cfg.dir[dirnum]->maxfiles) {
if(getfiles(&cfg,dirnum)>=cfg.dir[dirnum]->maxfiles) {
bputs(text[DirFull]);
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment