Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F814D4BF for ; Tue, 7 Aug 2012 19:38:57 +0000 (UTC) Received: (qmail 69404 invoked by uid 500); 7 Aug 2012 19:38:56 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 69315 invoked by uid 500); 7 Aug 2012 19:38:56 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 69302 invoked by uid 99); 7 Aug 2012 19:38:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 19:38:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 19:38:54 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1168D23888CD; Tue, 7 Aug 2012 19:38:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1370466 - in /httpd/httpd/trunk/modules/lua: mod_lua.c mod_lua.h Date: Tue, 07 Aug 2012 19:38:09 -0000 To: cvs@httpd.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120807193810.1168D23888CD@eris.apache.org> Author: sf Date: Tue Aug 7 19:38:09 2012 New Revision: 1370466 URL: http://svn.apache.org/viewvc?rev=1370466&view=rev Log: There is only one global provider name space, therefore allow LuaAuthzProvider only in global scope. Remove unnecessary server config field. Modified: httpd/httpd/trunk/modules/lua/mod_lua.c httpd/httpd/trunk/modules/lua/mod_lua.h Modified: httpd/httpd/trunk/modules/lua/mod_lua.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/mod_lua.c?rev=1370466&r1=1370465&r2=1370466&view=diff ============================================================================== --- httpd/httpd/trunk/modules/lua/mod_lua.c (original) +++ httpd/httpd/trunk/modules/lua/mod_lua.c Tue Aug 7 19:38:09 2012 @@ -1324,7 +1324,7 @@ static const char *register_authz_provid const char *function) { lua_authz_provider_spec *spec; - const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE); + const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY); if (err) return err; Modified: httpd/httpd/trunk/modules/lua/mod_lua.h URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/mod_lua.h?rev=1370466&r1=1370465&r2=1370466&view=diff ============================================================================== --- httpd/httpd/trunk/modules/lua/mod_lua.h (original) +++ httpd/httpd/trunk/modules/lua/mod_lua.h Tue Aug 7 19:38:09 2012 @@ -138,8 +138,6 @@ typedef struct /* value of the LuaRoot directive */ const char *root_path; - - apr_hash_t *authz_providers; } ap_lua_server_cfg; typedef struct