Changes with Apache 1.3.20
+ *) Hooked calls to opendir() and readdir() so that we could add '.' and
+ '..' to the entry list. By default NetWare does not return these
+ entries which caused mod_autoindex not to display the parent directory
+ entry. [Brad Nicholes <BNICHOLES@novell.com>]
+
*) Solved a very serious threading problem with WinNT/2K Services. The
moment master_main told that the shutdown was complete, the parent
control thread exited Apache, leaving mod_jserv's Java process running
return 1;
}
+#undef opendir_411
+DIR *os_opendir (const char *pathname)
+{
+ DIR *d = opendir_411 (pathname);
+
+ if (d) {
+ strcpy (d->d_name, "<<**");
+ }
+ return d;
+}
+
+#undef readdir_411
+DIR *os_readdir (DIR *dirP)
+{
+ if ((dirP->d_name[0] == '<') && (dirP->d_name[2] == '*')) {
+ strcpy (dirP->d_name, ".");
+ strcpy (dirP->d_nameDOS, ".");
+ return (dirP);
+ }
+ else if ((dirP->d_name[0] == '.') && (dirP->d_name[1] == '\0')) {
+ strcpy (dirP->d_name, "..");
+ strcpy (dirP->d_nameDOS, "..");
+ return (dirP);
+ }
+ else
+ return readdir_411 (dirP);
+}
#include <ws2nlm.h>
#include <winsock2.h>
#include <fcntl.h>
+#include <dirent.h>
#define NO_LINGCLOSE
#define NO_SLACK
#define mktemp(s) tmpnam(s)
#define _getch(c) getch(c)
+#define opendir_411(p) os_opendir(p)
+#define openir(p) os_opendir(p)
+DIR *os_opendir (const char *pathname);
+
+#define readdir_411(p) os_readdir(p)
+#define readdir(p) os_readdir(p)
+DIR *os_readdir (DIR *dirP);
/* Prototypes */
void AMCSocketCleanup(void);