mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-23 14:18:17 -04:00
If max-connections is < 0, disable the module.
This commit is contained in:
1 parent
236df01b15
commit
d34cd639fc
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user