* Makefile.in: Link httpd against user-supplied $(LIBS).
* modules/standard/mod_autoindex.c (index_directory): If stat() fails
for a particular dirent, ignore that entry rather than truncating the
directory listing.
PR: 7882, 17357
Reviewed by: stoddard, trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@104815
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.51
+ *) mod_autoindex: Don't truncate the directory listing if a stat()
+ call fails (for instance on a >2Gb file). PR 17357.
+ [Joe Orton]
+
+ *) Makefile fix: httpd is linked against LIBS given to the
+ 'make' invocation. PR 7882. [Joe Orton]
+
*) WinNT MPM: Fix a broken log message at termination. PR 28063.
[Eider Oliveira <eider bol.com.br>]
This makes the cache work on Linux again. [Graham Leggett]
*) Enable special ErrorDocument value 'default' which restores the
- canned server response for the scope of the directive
+ canned server response for the scope of the directive.
[Geoffrey Young, Andre Malo]
*) work around MSIE Digest auth bug - if AuthDigestEnableQueryStringHack
PROGRAM_NAME = $(progname)
PROGRAM_SOURCES = modules.c
-PROGRAM_LDADD = $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS) $(AP_LIBS)
+PROGRAM_LDADD = $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
PROGRAM_DEPENDENCIES = \
$(BUILTIN_LIBS) \
$(MPM_LIB) \
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2004/08/26 12:12:00 $]
+Last modified at [$Date: 2004/08/26 13:01:17 $]
Release:
PR: 30134
+1: jorton, trawick
- *) Build fix: ensure httpd is linked against user-supplied LIBS during make.
- http://cvs.apache.org/viewcvs.cgi/httpd-2.0/Makefile.in?r1=1.138&r2=1.139
- PR: 7882
- +1: jorton, stoddard, trawick
-
- *) mod_autoindex: Don't truncate directory listing when a stat call fails.
- http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/generators/mod_autoindex.c?r1=1.132&r2=1.133
- PR: 17357
- +1: jorton, stoddard (stat fails when file size > 2GB even if
- large file support is enabled), trawick
-
*) unixd_accept: Eliminate now-unnecessary apr_os_sock_get() call.
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/os/unix/unixd.c?r1=1.66&r2=1.67
+1: jorton, trawick
fullpath = apr_palloc(r->pool, APR_PATH_MAX);
dirpathlen = strlen(name);
memcpy(fullpath, name, dirpathlen);
- while (apr_dir_read(&dirent, APR_FINFO_MIN | APR_FINFO_NAME,
- thedir) == APR_SUCCESS) {
+
+ do {
+ status = apr_dir_read(&dirent, APR_FINFO_MIN | APR_FINFO_NAME, thedir);
+ if (APR_STATUS_IS_INCOMPLETE(status)) {
+ continue; /* ignore un-stat()able files */
+ }
+ else if (status != APR_SUCCESS) {
+ break;
+ }
+
/* We want to explode symlinks here. */
if (dirent.filetype == APR_LNK) {
const char *savename;
head = p;
num_ent++;
}
- }
+ } while (1);
+
if (num_ent > 0) {
ar = (struct ent **) apr_palloc(r->pool,
num_ent * sizeof(struct ent *));