]> granicus.if.org Git - apache/commitdiff
Deploy ap_sub_req_lookup_dirent() for the main loop. Note we _really_
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 27 Jun 2001 21:59:48 +0000 (21:59 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 27 Jun 2001 21:59:48 +0000 (21:59 +0000)
  need to further optimize this code, there are dozens of perhaps unnecessary
  stat calls, and meaningless #ifndef OS2 protections around apr_lstat()'s.
  OS2 has lstat (It's simply stat()) so we should pull the os-specific cruft.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89449 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_negotiation.c

index 11acb5691efdf4e37c55a9f42f1dc2aa986cefe6..4e56648a69407e6d2a206d8956cad941da5c1899 100644 (file)
@@ -951,7 +951,7 @@ static int read_types_multi(negotiation_state *neg)
          * which we'll be slapping default_type on later).
          */
 
-        sub_req = ap_sub_req_lookup_file(dirent.name, r, NULL);
+        sub_req = ap_sub_req_lookup_dirent(&dirent, r, NULL);
 
         /* If it has a handler, we'll pretend it's a CGI script,
          * since that's a good indication of the sort of thing it