From: Wayne Davison Date: Tue, 18 Sep 2007 14:14:22 +0000 (+0000) Subject: If max-connections is < 0, disable the module. X-Git-Tag: v3.0.0pre1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d34cd639fc5e5dcf866bd209a993ce13c6c45ca3;p=thirdparty%2Frsync.git If max-connections is < 0, disable the module. --- diff --git a/connection.c b/connection.c index 5e37fe24..62818610 100644 --- a/connection.c +++ b/connection.c @@ -26,7 +26,7 @@ int claim_connection(char *fname, int max_connections) { int fd, i; - if (max_connections <= 0) + if (max_connections == 0) return 1; if ((fd = open(fname, O_RDWR|O_CREAT, 0600)) < 0)