]> granicus.if.org Git - apache/commitdiff
Remove an attempt to fix a race condition. The attempt is not
authorManoj Kasichainula <manoj@apache.org>
Mon, 23 Oct 2000 18:14:37 +0000 (18:14 +0000)
committerManoj Kasichainula <manoj@apache.org>
Mon, 23 Oct 2000 18:14:37 +0000 (18:14 +0000)
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

modules/mappers/mod_userdir.c

index 37bc6480e86a4abde2b5c468c6e47201a6ab00a4..f92d02b2c0a747bbabaad97d65b853ff7efe78b8 100644 (file)
@@ -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;
     }