From 37f21d8dda153d2db11288dfbd59133a67e6543c Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 6 Aug 2011 21:14:14 +0000 Subject: [PATCH] Don't check the directory maxfiles setting in addfiledat(), this is the wrong place (e.g. the file was probably already uploaded to disk). --- src/sbbs3/filedat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/filedat.c b/src/sbbs3/filedat.c index d667732859..8c327298a7 100644 --- a/src/sbbs3/filedat.c +++ b/src/sbbs3/filedat.c @@ -8,7 +8,7 @@ * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -187,7 +187,7 @@ BOOL DLLCALL addfiledat(scfg_t* cfg, file_t* f) read(file,&c,1); if(c==ETX) break; } - if(l/F_LEN>=MAX_FILES || l/F_LEN>=cfg->dir[f->dir]->maxfiles) { + if(l/F_LEN>=MAX_FILES) { close(file); return(FALSE); } -- GitLab