You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fu...@apache.org on 2013/04/14 22:03:08 UTC

svn commit: r1467822 - /httpd/httpd/trunk/modules/lua/lua_request.c

Author: fuankg
Date: Sun Apr 14 20:03:07 2013
New Revision: 1467822

URL: http://svn.apache.org/r1467822
Log:
Only ask for the stat info we really use.

Modified:
    httpd/httpd/trunk/modules/lua/lua_request.c

Modified: httpd/httpd/trunk/modules/lua/lua_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_request.c?rev=1467822&r1=1467821&r2=1467822&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_request.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_request.c Sun Apr 14 20:03:07 2013
@@ -670,7 +670,7 @@ static int lua_ap_sendfile(lua_State *L)
     luaL_checktype(L, 2, LUA_TSTRING);
     r = ap_lua_check_request_rec(L, 1);
     filename = lua_tostring(L, 2);
-    apr_stat(&file_info, filename, APR_FINFO_NORM, r->pool);
+    apr_stat(&file_info, filename, APR_FINFO_MIN, r->pool);
     if (file_info.filetype == APR_NOFILE || file_info.filetype == APR_DIR) {
         lua_pushboolean(L, 0);
     }
@@ -1216,7 +1216,7 @@ static int lua_ap_stat(lua_State *L)
     luaL_checktype(L, 2, LUA_TSTRING);
     r = ap_lua_check_request_rec(L, 1);
     filename = lua_tostring(L, 2);
-    if (apr_stat(&file_info, filename, APR_FINFO_NORM, r->pool) == OK) {
+    if (apr_stat(&file_info, filename, APR_FINFO_MIN, r->pool) == OK) {
         lua_newtable(L);
 
         lua_pushstring(L, "mtime");