ben 98/05/16 14:11:17
Modified: src CHANGES
src/modules/standard mod_autoindex.c
Log:
Fix conversion of time -1.
Revision Changes Path
1.850 +3 -0 apache-1.3/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.849
retrieving revision 1.850
diff -u -r1.849 -r1.850
--- CHANGES 1998/05/16 16:34:44 1.849
+++ CHANGES 1998/05/16 21:11:15 1.850
@@ -1,5 +1,8 @@
Changes with Apache 1.3b7
+ *) WIN32: Clicking on "Last Modified" in a fancy index caused a crash.
Fixed.
+ [Ben Laurie] PR#2238
+
*) WIN32: CGIs could cause a hang (because of a deadlock in the standard C
library), so CGI handling has been changed to use Win32 native handles
instead of C file descriptors.
1.77 +6 -2 apache-1.3/src/modules/standard/mod_autoindex.c
Index: mod_autoindex.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_autoindex.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- mod_autoindex.c 1998/05/03 16:46:50 1.76
+++ mod_autoindex.c 1998/05/16 21:11:17 1.77
@@ -718,8 +718,12 @@
if (keyid == K_LAST_MOD) {
struct tm *ts = localtime(&p->lm);
- p->lm_cmp = ap_palloc(r->pool, 15);
- strftime(p->lm_cmp, 15, "%Y%m%d%H%M%S", ts);
+ if(ts) {
+ p->lm_cmp = ap_palloc(r->pool, 15);
+ strftime(p->lm_cmp, 15, "%Y%m%d%H%M%S", ts);
+ }
+ else
+ p->lm_cmp=NULL;
}
return (p);
}