diff options
author | Graham.Dumpleton <devnull@localhost> | 2009-01-19 04:51:25 +0000 |
---|---|---|
committer | Graham.Dumpleton <devnull@localhost> | 2009-01-19 04:51:25 +0000 |
commit | 8b01704a68e4dda5d1c44437dfcd94761816d914 (patch) | |
tree | df9cbb663d7d65edf6d8db525e22371ce4e01e03 | |
parent | c231da4648e43ed083f83ecb3a1af4a12396a96d (diff) | |
download | mod_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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |