From b8fc4783c79129fc7fcf64d88429e32057f392e1 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Sun, 14 Apr 2013 20:03:07 +0000 Subject: [PATCH] Only ask for the stat info we really use. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1467822 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/lua_request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index b153cbd466..4b57b9f876 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -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");