You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bj...@apache.org on 2001/01/09 01:26:48 UTC
cvs commit: apache-1.3/src/main http_request.c
bjh 01/01/08 16:26:48
Modified: src/main http_request.c
Log:
OS/2 file systems have no inodes so stat() tries to fake it by providing a
number that increments with each call. This isn't very useful to us and makes
ETags change value on every request which kills any ETag based caching so
force the inode value to 0.
Revision Changes Path
1.158 +3 -0 apache-1.3/src/main/http_request.c
Index: http_request.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_request.c,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -r1.157 -r1.158
--- http_request.c 2000/11/14 09:57:10 1.157
+++ http_request.c 2001/01/09 00:26:47 1.158
@@ -246,6 +246,9 @@
else {
errno = 0;
rv = stat(path, &r->finfo);
+#ifdef OS2
+ r->finfo.st_ino = 0;
+#endif
}
if (cp != end)