summaryrefslogtreecommitdiffstats
path: root/debian/patches/slapi-errorlog-file
blob: 4899451219c9226c6d86147637440d5ae3e74a89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
The slapi error log file defaults to /var/errors given our setting
of --localstatedir.  Move it to /var/log/slapi-errors instead.

Debian-specific.

--- a/servers/slapd/slapi/slapi_overlay.c
+++ b/servers/slapd/slapi/slapi_overlay.c
@@ -930,7 +930,7 @@ int slapi_over_config( BackendDB *be, Co
 		ldap_pvt_thread_mutex_init( &slapi_printmessage_mutex );
 
 		if ( slapi_log_file == NULL )
-			slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "errors" );
+			slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "log" LDAP_DIRSEP "slapi-errors" );
 
 		rc = slapi_int_init_object_extensions();
 		if ( rc != 0 )