Commit f049fbb2 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

avoid system call when not needed (ITS#5441)

parent e4c84417
......@@ -74,7 +74,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) {
Modifications *m;
struct berval *b, *who = NULL;
char *what, *suffix;
long stamp = slap_get_time();
time_t stamp;
int i;
if ( rs->sr_err != LDAP_SUCCESS ) return SLAP_CB_CONTINUE;
......@@ -125,6 +125,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) {
return SLAP_CB_CONTINUE;
}
stamp = slap_get_time();
fprintf(f, "# %s %ld %s%s%s\n",
what, stamp, suffix, who ? " " : "", who ? who->bv_val : "");
......
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