]> git.sur5r.net Git - openldap/commitdiff
ITS#8105 back-perl: correctly convert perlModuleConfig
authorJan Synacek <jsynacek@redhat.com>
Wed, 15 Apr 2015 06:53:39 +0000 (08:53 +0200)
committerHoward Chu <hyc@openldap.org>
Thu, 16 Apr 2015 01:55:56 +0000 (02:55 +0100)
perlModuleConfig lines are not converted when using slaptest -f -F.

servers/slapd/back-perl/config.c

index 873a365f0784d2407f93fa7728b0c65d60f2566d..83acd935a67de9d241dfb3693138c91037844884 100644 (file)
@@ -221,6 +221,9 @@ perl_cf(
                        /* Put all arguments on the perl stack */
                        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 );
                        }
 
                        PUTBACK ;