[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#4291) slapi pluginlog fix for 2.3
Full_Name: Martin Evans
Version: 2.3.14
OS: Linux/fc4
URL:
Submission from: (NULL) (86.132.69.159)
The pluginlog configuration directive seems broken in the 2.3 releases. slapi
plugins always seem to log to the default location. The following trivial patch
seems to fix it:
--- servers/slapd/slapi/slapi_overlay.c.0 2005-12-29 20:11:23.000000000
+0000
+++ servers/slapd/slapi/slapi_overlay.c 2005-12-29 20:12:12.000000000 +0000
@@ -880,7 +880,9 @@
ldap_pvt_thread_mutex_init( &slapi_time_mutex );
ldap_pvt_thread_mutex_init( &slapi_printmessage_mutex );
- slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP
"errors" );
+ if (slapi_log_file==NULL) {
+ slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR
LDAP_DIRSEP "errors" );
+ }
rc = slapi_int_init_object_extensions();
if ( rc != 0 )
Cheers,
Martin.