You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by jg...@apache.org on 2005/10/15 17:31:48 UTC
svn commit: r321349 - /httpd/mod_python/trunk/src/requestobject.c
Author: jgallacher
Date: Sat Oct 15 08:31:46 2005
New Revision: 321349
URL: http://svn.apache.org/viewcvs?rev=321349&view=rev
Log:
Fixed req_sendfile(filename) to return the correct number of bytes when
filename points to a symbolic link. The fix needs to be tested on Windows.
Ref MODPYTHON-84
Modified:
httpd/mod_python/trunk/src/requestobject.c
Modified: httpd/mod_python/trunk/src/requestobject.c
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/src/requestobject.c?rev=321349&r1=321348&r2=321349&view=diff
==============================================================================
--- httpd/mod_python/trunk/src/requestobject.c (original)
+++ httpd/mod_python/trunk/src/requestobject.c Sat Oct 15 08:31:46 2005
@@ -1024,7 +1024,7 @@
Py_BEGIN_ALLOW_THREADS
status=apr_stat(&finfo, fname,
- APR_READ, self->request_rec->pool);
+ APR_FINFO_NORM, self->request_rec->pool);
Py_END_ALLOW_THREADS
if (status != APR_SUCCESS) {
PyErr_SetString(PyExc_IOError, "Could not stat file for reading");