From 4f756867c628ae34811c055fdcc13fc82cacf0db Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Tue, 19 Jun 2007 23:24:58 +0000 Subject: Resolves: bug 237356 Bug Description: Move DS Admin Code into Admin Server - admin server setup Fix Description: Allow the use of '-' and '_' in section and parameter names when passing in inf parameters via the command line. Platforms tested: RHEL4 Flag Day: no Doc impact: no --- ldap/admin/src/scripts/Setup.pm.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldap/admin/src/scripts') diff --git a/ldap/admin/src/scripts/Setup.pm.in b/ldap/admin/src/scripts/Setup.pm.in index f1a60719..dd2b5b64 100644 --- a/ldap/admin/src/scripts/Setup.pm.in +++ b/ldap/admin/src/scripts/Setup.pm.in @@ -148,7 +148,7 @@ sub new { # arguments override those passed in via an inf file - this # allows the reuse of .inf files with some parameters overridden for (@ARGV) { - if (/^(\w_-+)\.(\w_-+)=(.*)$/) { # e.g. section.param=value + if (/^([\w_-]+)\.([\w_-]+)=(.*)$/) { # e.g. section.param=value $self->{inf}->{$1}->{$2} = $3; } else { # error print STDERR "Error: unknown command line option $_\n"; -- cgit