diff options
author | Gerald Carter <jerry@samba.org> | 2006-03-30 14:28:33 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2006-03-30 14:28:33 +0000 |
commit | b5a8cd96721dcf745bd84bfd5ec7ab3994e0fd19 (patch) | |
tree | 0d9b210f2c74a52fe324cca81f79d1a78094e3f0 /examples | |
parent | 6b26aa9d0a25ab5acf498874cbeba2833cb27e06 (diff) | |
download | samba-b5a8cd96721dcf745bd84bfd5ec7ab3994e0fd19.tar.gz samba-b5a8cd96721dcf745bd84bfd5ec7ab3994e0fd19.tar.xz samba-b5a8cd96721dcf745bd84bfd5ec7ab3994e0fd19.zip |
r14825: add support for max connections parameter
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/scripts/shares/perl/modify_samba_config.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/scripts/shares/perl/modify_samba_config.pl b/examples/scripts/shares/perl/modify_samba_config.pl index e59ac451baf..aaf2958a95a 100755 --- a/examples/scripts/shares/perl/modify_samba_config.pl +++ b/examples/scripts/shares/perl/modify_samba_config.pl @@ -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]}; |