More for ITS#8105

Fix multiple argument handling. For example:

perlModuleConfig homedir /home/jsynacek

should be converted to

olcPerlModuleConfig: homedir /home/jsynacek

and not to

olcPerlModuleConfig: homedir
olcPerlModuleConfig: /home/jsynacek
This commit is contained in:
Jan Synacek 2015-04-24 13:39:33 +02:00 committed by Howard Chu
parent bd1068204d
commit fb1bf1caa8

View File

@ -219,12 +219,11 @@ perl_cf(
XPUSHs( pb->pb_obj_ref );
/* Put all arguments on the perl stack */
for( args = 1; args < c->argc; args++ ) {
for( args = 1; args < c->argc; args++ )
XPUSHs(sv_2mortal(newSVpv(c->argv[args], 0)));
ber_str2bv( c->argv[args], 0, 0, &bv );
value_add_one( &pb->pb_module_config, &bv );
}
ber_str2bv( c->line + STRLENOF("perlModuleConfig "), 0, 0, &bv );
value_add_one( &pb->pb_module_config, &bv );
PUTBACK ;