incubator-mod_ftp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: Directory listings: LFS issues and other funky stuff
Date Thu, 21 Dec 2006 15:55:48 GMT

On Dec 21, 2006, at 8:13 AM, Niklas Edmundsson wrote:

> On Mon, 18 Dec 2006, Niklas Edmundsson wrote:
>
>> I'm seeing weird stuff regarding large files and directory listings.
>>
>> I simply don't see large files in the directory listing output,  
>> but an strace shows that it stats all files (including the large  
>> ones), but then it does something else (a subrequest for each  
>> file?) which stats all files except for the large ones.
>
> I discovered that I had managed to have CFLAGS set to optimize when  
> building the debug version of httpd, which explained why i couldn't  
> get gdb to behave.
>
> In any case, the reason that it doesn't work is because ftp_glob.c  
> is totally APR-unaware. It uses stat/lstat and friends directly,  
> uses the default struct stat (which is non-LFS) and so on.
>
> You can probably kludge together stuff to make the thing work, but  
> the correct solution seems to be to make the thing use APR  
> functions instead. If this isn't fixed properly you'll only get  
> more nasty surprises later on...
>
> In fact, what does ftp_glob.c do that apr_match_glob can't do?
>

As you guess, the globbing in the current version of mod_ftp
has yet to be ported to use native APR. This will likely
be done after graduation.


Mime
View raw message