incubator-mod_ftp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Edmundsson <ni...@acc.umu.se>
Subject Re: Directory listings: LFS issues and other funky stuff
Date Thu, 21 Dec 2006 13:13:36 GMT
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?

/Nikke
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se      |     nikke@acc.umu.se
---------------------------------------------------------------------------
  You're only young once.  You're immature forever.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Mime
View raw message