diff options
author | Wayne Davison <wayned@samba.org> | 2007-09-18 14:14:22 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-09-18 14:14:22 +0000 |
commit | d34cd639fc5e5dcf866bd209a993ce13c6c45ca3 (patch) | |
tree | df362b83800dcf4f116f766779c7fc9473a0f298 /connection.c | |
parent | 236df01b15447f5c72b15c2d45496e2ec73cf951 (diff) | |
download | android_external_rsync-d34cd639fc5e5dcf866bd209a993ce13c6c45ca3.tar.gz android_external_rsync-d34cd639fc5e5dcf866bd209a993ce13c6c45ca3.tar.bz2 android_external_rsync-d34cd639fc5e5dcf866bd209a993ce13c6c45ca3.zip |
If max-connections is < 0, disable the module.
Diffstat (limited to 'connection.c')
-rw-r--r-- | connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |