diff options
Diffstat (limited to 'recipes-support/openldap/openldap-2.4.39/slapi-errorlog-file.patch')
| -rw-r--r-- | recipes-support/openldap/openldap-2.4.39/slapi-errorlog-file.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-support/openldap/openldap-2.4.39/slapi-errorlog-file.patch b/recipes-support/openldap/openldap-2.4.39/slapi-errorlog-file.patch new file mode 100644 index 0000000..4899451 --- /dev/null +++ b/recipes-support/openldap/openldap-2.4.39/slapi-errorlog-file.patch | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | The slapi error log file defaults to /var/errors given our setting | ||
| 2 | of --localstatedir. Move it to /var/log/slapi-errors instead. | ||
| 3 | |||
| 4 | Debian-specific. | ||
| 5 | |||
| 6 | --- a/servers/slapd/slapi/slapi_overlay.c | ||
| 7 | +++ b/servers/slapd/slapi/slapi_overlay.c | ||
| 8 | @@ -930,7 +930,7 @@ int slapi_over_config( BackendDB *be, Co | ||
| 9 | ldap_pvt_thread_mutex_init( &slapi_printmessage_mutex ); | ||
| 10 | |||
| 11 | if ( slapi_log_file == NULL ) | ||
| 12 | - slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "errors" ); | ||
| 13 | + slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "log" LDAP_DIRSEP "slapi-errors" ); | ||
| 14 | |||
| 15 | rc = slapi_int_init_object_extensions(); | ||
| 16 | if ( rc != 0 ) | ||
