mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
avoid system call when not needed (ITS#5441)
This commit is contained in:
parent
e4c84417f7
commit
f049fbb206
1 changed files with 2 additions and 1 deletions
|
|
@ -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 : "");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue