Commit 74230a29 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#5441

parent 0cad9471
...@@ -18,6 +18,7 @@ OpenLDAP 2.4.9 Engineering ...@@ -18,6 +18,7 @@ OpenLDAP 2.4.9 Engineering
Fixed slapd syncrepl refreshAndPersist (ITS#5454) Fixed slapd syncrepl refreshAndPersist (ITS#5454)
Fixed slapd syncrepl modrdn processing (ITS#5397) Fixed slapd syncrepl modrdn processing (ITS#5397)
Fixed slapd-ldap connection handler (ITS#5404) Fixed slapd-ldap connection handler (ITS#5404)
Fixed slapo-auditlog unnecessary syscall (ITS#5441)
Fixed slapo-refint dnSubtreeMatch (ITS#5427) Fixed slapo-refint dnSubtreeMatch (ITS#5427)
Fixed slapo-refint global referential integrity (ITS#5428) Fixed slapo-refint global referential integrity (ITS#5428)
Fixed slapo-syncprov psearch on closed connection (ITS#5401) Fixed slapo-syncprov psearch on closed connection (ITS#5401)
......
...@@ -74,7 +74,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) { ...@@ -74,7 +74,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) {
Modifications *m; Modifications *m;
struct berval *b, *who = NULL; struct berval *b, *who = NULL;
char *what, *suffix; char *what, *suffix;
long stamp = slap_get_time(); time_t stamp;
int i; int i;
if ( rs->sr_err != LDAP_SUCCESS ) return SLAP_CB_CONTINUE; if ( rs->sr_err != LDAP_SUCCESS ) return SLAP_CB_CONTINUE;
...@@ -125,8 +125,9 @@ static int auditlog_response(Operation *op, SlapReply *rs) { ...@@ -125,8 +125,9 @@ static int auditlog_response(Operation *op, SlapReply *rs) {
return SLAP_CB_CONTINUE; return SLAP_CB_CONTINUE;
} }
stamp = slap_get_time();
fprintf(f, "# %s %ld %s%s%s\n", fprintf(f, "# %s %ld %s%s%s\n",
what, stamp, suffix, who ? " " : "", who ? who->bv_val : ""); what, (long)stamp, suffix, who ? " " : "", who ? who->bv_val : "");
if ( !BER_BVISEMPTY( &op->o_conn->c_dn ) && if ( !BER_BVISEMPTY( &op->o_conn->c_dn ) &&
(!who || !dn_match( who, &op->o_conn->c_dn ))) (!who || !dn_match( who, &op->o_conn->c_dn )))
...@@ -173,7 +174,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) { ...@@ -173,7 +174,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) {
break; break;
} }
fprintf(f, "# end %s %ld\n\n", what, stamp); fprintf(f, "# end %s %ld\n\n", what, (long)stamp);
fclose(f); fclose(f);
ldap_pvt_thread_mutex_unlock(&ad->ad_mutex); ldap_pvt_thread_mutex_unlock(&ad->ad_mutex);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment