mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
WL#4350 Options in my.cnf style config file should not start with --
This commit is contained in:
@ -27,6 +27,16 @@ sub value {
|
||||
return $self->{value};
|
||||
}
|
||||
|
||||
sub option {
|
||||
my ($self)= @_;
|
||||
my $name= $self->{name};
|
||||
my $value= $self->{value};
|
||||
|
||||
my $opt= $name;
|
||||
$opt= "$name=$value" if ($value);
|
||||
$opt= "--$opt" unless ($opt =~ /^--/);
|
||||
return $opt;
|
||||
}
|
||||
|
||||
package My::Config::Group;
|
||||
|
||||
|
Reference in New Issue
Block a user