summaryrefslogtreecommitdiff
path: root/examples/scripts/shares
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-03-30 14:28:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:49 -0500
commit2b86a5b4ed260a42f2771c9e2c5f83268f64a8b1 (patch)
tree50b2338019a4b79e7f9dd5c9f15b6586aa711f55 /examples/scripts/shares
parent3aaa9031021b27bc2245380839655ea8a9792b6f (diff)
downloadsamba-2b86a5b4ed260a42f2771c9e2c5f83268f64a8b1.tar.gz
samba-2b86a5b4ed260a42f2771c9e2c5f83268f64a8b1.tar.bz2
samba-2b86a5b4ed260a42f2771c9e2c5f83268f64a8b1.zip
r14825: add support for max connections parameter
(This used to be commit 63efbdf005f410c4a9843809207ea27f4c1ac756)
Diffstat (limited to 'examples/scripts/shares')
-rwxr-xr-xexamples/scripts/shares/perl/modify_samba_config.pl3
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 e59ac451ba..aaf2958a95 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]};