1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r14825: add support for max connections parameter

This commit is contained in:
Gerald Carter 2006-03-30 14:28:33 +00:00 committed by Gerald (Jerry) Carter
parent 6f37658f92
commit 63efbdf005

View File

@ -36,7 +36,7 @@ my $tmp_file_name = undef;
if ($#ARGV == 1) {
$delete_mode = 1;
}
elsif ($#ARGV == 3) {
elsif ($#ARGV == 4) {
$add_mode = 1;
}
else {
@ -101,6 +101,7 @@ close (CONFIGFILE);
if ($add_mode) {
$config{$ARGV[1]}{'path'} = $ARGV[2];
$config{$ARGV[1]}{'comment'} = $ARGV[3];
$config{$ARGV[1]}{'max connections'} = $ARGV[4];
}
elsif ($delete_mode) {
delete $config{$ARGV[1]};