mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Update msc_logging.c
This commit is contained in:
@@ -234,15 +234,7 @@ static char *construct_auditlog_filename(apr_pool_t *mp, const char *uniqueid) {
|
|||||||
* This is required for mpm-itk & mod_ruid2, though should be harmless for other implementations
|
* This is required for mpm-itk & mod_ruid2, though should be harmless for other implementations
|
||||||
* It also changes the return statement.
|
* It also changes the return statement.
|
||||||
*/
|
*/
|
||||||
char *userinfo;
|
char *userinfo = get_username(mp);
|
||||||
apr_status_t rc;
|
|
||||||
apr_uid_t uid;
|
|
||||||
apr_gid_t gid;
|
|
||||||
apr_uid_current(&uid, &gid, mp);
|
|
||||||
rc = apr_uid_name_get(&userinfo, uid, mp);
|
|
||||||
if (rc != APR_SUCCESS) {
|
|
||||||
userinfo = apr_psprintf(mp, "%u", uid);
|
|
||||||
}
|
|
||||||
|
|
||||||
apr_time_exp_lt(&t, apr_time_now());
|
apr_time_exp_lt(&t, apr_time_now());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user