From 063fc9f5c89e09b4a3be0881a9f68093f1674da6 Mon Sep 17 00:00:00 2001 From: Marc Stern Date: Fri, 18 Aug 2023 16:54:19 +0200 Subject: [PATCH] Update msc_logging.c --- apache2/msc_logging.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/apache2/msc_logging.c b/apache2/msc_logging.c index 7f286500..cdd116f8 100644 --- a/apache2/msc_logging.c +++ b/apache2/msc_logging.c @@ -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 * It also changes the return statement. */ - char *userinfo; - 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); - } + char *userinfo = get_username(mp); apr_time_exp_lt(&t, apr_time_now());