mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#8213 fix deleting rewrite rules
From ITS#5940. Add path has the same code.
This commit is contained in:
parent
523f989d8f
commit
7380354270
@ -2180,6 +2180,9 @@ rwm_cf_gen( ConfigArgs *c )
|
|||||||
ca.argc = 0;
|
ca.argc = 0;
|
||||||
config_fp_parse_line( &ca );
|
config_fp_parse_line( &ca );
|
||||||
|
|
||||||
|
argv0 = ca.argv[ 0 ];
|
||||||
|
ca.argv[ 0 ] += STRLENOF( "rwm-" );
|
||||||
|
|
||||||
if ( strcasecmp( ca.argv[ 0 ], "suffixmassage" ) == 0 ) {
|
if ( strcasecmp( ca.argv[ 0 ], "suffixmassage" ) == 0 ) {
|
||||||
rc = rwm_suffixmassage_config( &db, c->fname, c->lineno,
|
rc = rwm_suffixmassage_config( &db, c->fname, c->lineno,
|
||||||
ca.argc, ca.argv );
|
ca.argc, ca.argv );
|
||||||
@ -2189,6 +2192,8 @@ rwm_cf_gen( ConfigArgs *c )
|
|||||||
ca.argc, ca.argv );
|
ca.argc, ca.argv );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ca.argv[ 0 ] = argv0;
|
||||||
|
|
||||||
ch_free( ca.tline );
|
ch_free( ca.tline );
|
||||||
ch_free( ca.argv );
|
ch_free( ca.argv );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user