summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham.Dumpleton <devnull@localhost>2009-01-19 04:51:25 +0000
committerGraham.Dumpleton <devnull@localhost>2009-01-19 04:51:25 +0000
commit8b01704a68e4dda5d1c44437dfcd94761816d914 (patch)
treedf9cbb663d7d65edf6d8db525e22371ce4e01e03
parentc231da4648e43ed083f83ecb3a1af4a12396a96d (diff)
downloadmod_wsgi-8b01704a68e4dda5d1c44437dfcd94761816d914.tar.gz
Incorrect argument to apr_stat(). On UNIX this actually makes no difference
as in that case it always generates all information anyway.
-rw-r--r--mod_wsgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod_wsgi.c b/mod_wsgi.c
index 838973e..9605123 100644
--- a/mod_wsgi.c
+++ b/mod_wsgi.c
@@ -4790,7 +4790,7 @@ static PyObject *wsgi_load_source(apr_pool_t *pool, request_rec *r,
}
#else
apr_finfo_t finfo;
- if (apr_stat(&finfo, filename, APR_FINFO_SIZE,
+ if (apr_stat(&finfo, filename, APR_FINFO_NORM,
pool) != APR_SUCCESS) {
object = PyLong_FromLongLong(0);
}
@@ -4856,7 +4856,7 @@ static int wsgi_reload_required(apr_pool_t *pool, request_rec *r,
}
#else
apr_finfo_t finfo;
- if (apr_stat(&finfo, filename, APR_FINFO_SIZE,
+ if (apr_stat(&finfo, filename, APR_FINFO_NORM,
pool) != APR_SUCCESS) {
return 1;
}
@@ -9850,7 +9850,7 @@ static int wsgi_hook_daemon_handler(conn_rec *c)
r->filename = (char *)apr_table_get(r->subprocess_env, "SCRIPT_FILENAME");
- if ((rv = apr_stat(&r->finfo, r->filename, APR_FINFO_SIZE,
+ if ((rv = apr_stat(&r->finfo, r->filename, APR_FINFO_NORM,
r->pool)) != APR_SUCCESS) {
/*
* Don't fail at this point. Allow the lack of file to