From: Manoj Kasichainula Date: Mon, 23 Oct 2000 18:14:37 +0000 (+0000) Subject: Remove an attempt to fix a race condition. The attempt is not X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=146a0fee17c47e14894205fe2b55ace048b0e76e;p=apache Remove an attempt to fix a race condition. The attempt is not successful, the race condition is not particularly important (people deleting users in the middle of a request), and the attempt introduces more thread-safeness problems. Oh, and I thought I had taken this out already. :) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86718 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_userdir.c b/modules/mappers/mod_userdir.c index 37bc6480e8..f92d02b2c0 100644 --- a/modules/mappers/mod_userdir.c +++ b/modules/mappers/mod_userdir.c @@ -362,12 +362,6 @@ static ap_unix_identity_t *get_suexec_id_doer(const request_rec *r) return NULL; } - /* XXX - NOT thread-safe! Need APR version of this function */ - if ((pw = getpwnam(username)) == NULL) { - /* This should never happen. */ - return NULL; - } - if ((ugid = apr_palloc(r->pool, sizeof(ap_unix_identity_t *))) == NULL) { return NULL; }