Return-Path: Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Delivered-To: mailing list dev@apr.apache.org Received: (qmail 55453 invoked from network); 24 Jan 2001 18:11:08 -0000 Received: from mail2.bna.bellsouth.net (205.152.150.14) by h31.sny.collab.net with SMTP; 24 Jan 2001 18:11:08 -0000 Received: from adsl-77-241-65.rdu.bellsouth.net (adsl-77-241-65.rdu.bellsouth.net [216.77.241.65]) by mail2.bna.bellsouth.net (3.3.5alt/0.75.2) with ESMTP id NAA03764 for ; Wed, 24 Jan 2001 13:11:11 -0500 (EST) Received: (from trawick@localhost) by adsl-77-241-65.rdu.bellsouth.net (8.9.3/8.8.7) id NAA04274; Wed, 24 Jan 2001 13:11:43 -0500 Date: Wed, 24 Jan 2001 13:11:43 -0500 Message-Id: <200101241811.NAA04274@adsl-77-241-65.rdu.bellsouth.net> X-Authentication-Warning: adsl-77-241-65.rdu.bellsouth.net: trawick set sender to trawickj@bellsouth.net using -f From: Jeff Trawick To: dev@apr.apache.org Subject: [PATCH] what exactly does APR_FINFO_DIRENT do? Reply-to: trawickj@bellsouth.net X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This patch gets mod_autoindex working again for me: Index: srclib/apr/file_io/unix/dir.c =================================================================== RCS file: /home/cvspublic/apr/file_io/unix/dir.c,v retrieving revision 1.48 diff -u -r1.48 dir.c --- srclib/apr/file_io/unix/dir.c 2001/01/24 16:16:35 1.48 +++ srclib/apr/file_io/unix/dir.c 2001/01/24 18:07:57 @@ -151,7 +151,7 @@ * only if stat will give us what this platform supports, and we can't * get it from the platform. * XXX: Optimize here with d_fileno, d_type etc by platform */ - wanted &= ~(APR_FINFO_NAME); + wanted &= ~(APR_FINFO_NAME|APR_FINFO_DIRENT); if (wanted) { char fspec[PATH_MAX]; mod_autoindex specifies APR_FINFO_DIRENT in the call to apr_dir_read(), and it ended up getting APR_INCOMPLETE as the return code from apr_dir_read() because apr_dir_read() didn't take out the APR_FINFO_DIRENT bit and later thought that something wasn't handled. I hear that mod_autoindex is broken on Win32 too. Maybe something similar is needed? But back to the question in the subject... I don't think APR_FINFO_DIRENT does anything, so why do we need it? Thanks... -- Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...