Skip to content

Commit 063fc9f

Browse files
author
Marc Stern
authored
Update msc_logging.c
1 parent 0708339 commit 063fc9f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

apache2/msc_logging.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,7 @@ static char *construct_auditlog_filename(apr_pool_t *mp, const char *uniqueid) {
234234
* This is required for mpm-itk & mod_ruid2, though should be harmless for other implementations
235235
* It also changes the return statement.
236236
*/
237-
char *userinfo;
238-
apr_status_t rc;
239-
apr_uid_t uid;
240-
apr_gid_t gid;
241-
apr_uid_current(&uid, &gid, mp);
242-
rc = apr_uid_name_get(&userinfo, uid, mp);
243-
if (rc != APR_SUCCESS) {
244-
userinfo = apr_psprintf(mp, "%u", uid);
245-
}
237+
char *userinfo = get_username(mp);
246238

247239
apr_time_exp_lt(&t, apr_time_now());
248240

0 commit comments

Comments
 (0)