From 9f4f2c11239c20d730a70dfad7732ef18f27a0cb Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Thu, 30 May 2013 10:53:20 +0200 Subject: [PATCH] Backport a fix to accept a per user limit over 2G --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index 06eb399..5f7a4f2 100644 --- a/html.c +++ b/html.c @@ -526,7 +526,7 @@ void htmlrel(void) } if(PerUserLimit > 0) { - if(tnbytes > (PerUserLimit*1000000)) { + if ((int)(tnbytes/1000000LLU) > PerUserLimit) { limit_flag=0; if(access(PerUserLimitFile, R_OK) == 0) { if((fp_usr = fopen(PerUserLimitFile, "r")) == 0) { -- 2.47.3