]> granicus.if.org Git - apache/commitdiff
back out recent breakage. If the lstat isn't executed, finfo isn't
authorGreg Ames <gregames@apache.org>
Mon, 29 Jan 2001 22:19:17 +0000 (22:19 +0000)
committerGreg Ames <gregames@apache.org>
Mon, 29 Jan 2001 22:19:17 +0000 (22:19 +0000)
initialized, and the code was looking at random garbage.

This gets the server a little closer to starting on apache.org.  There's still
an issue with mod_include not resolving apr_get_username when it's dynamically
loaded.

Submitted by: Jeff Trawick

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

server/config.c

index 956add016b198ff14f8ff19563622b2563408ffd..ecfcc6b3538c38e34aba119a27fe84e6d33e8534 100644 (file)
@@ -1278,10 +1278,10 @@ void ap_process_resource_config(server_rec *s, const char *fname,
     /* 
      * here we want to check if the candidate file is really a
      * directory, and most definitely NOT a symlink (to prevent
-     * horrible loops).  So we do so above using apr_lstat.
-     * If so, let's recurse and toss it back into the function.
+     * horrible loops).  If so, let's recurse and toss it back 
+     * into the function.
      */
-    if (finfo.filetype == APR_DIR) {
+    if (ap_is_rdirectory(ptemp, fname)) {
         apr_dir_t *dirp;
         apr_finfo_t dirent;
        int current;