From b7c0a0109f693c93e40ee27d861003286e0afa3b Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Wed, 29 May 2013 21:54:21 +0200 Subject: [PATCH] Compare correctly a per user limit greater than 2GB A user limit greater than 2GB would sometime list the user into the limit file even though the user does not exceed the limit. Thanks to RodinM for reporting this bug. --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index b23ce10..cd3ed48 100644 --- a/html.c +++ b/html.c @@ -528,7 +528,7 @@ void htmlrel(void) } if(PerUserLimit > 0) { - if(tnbytes > (PerUserLimit*1000000)) { + if(tnbytes/1000000LL > PerUserLimit) { limit_flag=0; if(access(PerUserLimitFile, R_OK) == 0) { if((fp_usr = fopen(PerUserLimitFile, "r")) == 0) { -- 2.47.2