/ Check-in [24adf9ed]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Do not authenticate statements when reading the schema. Backport of bug fix in (1588) to version 2. (CVS 1591)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | version_2
Files: files | file ages | folders
SHA1: 24adf9ed5988d6e110a750f75b767fad163689c6
User & Date: drh 2004-06-14 11:58:37
Context
2004-06-16
01:21
Update the publish.sh script so that it no longer generates documentation pages (that is handled by the version 3.0.0 publish.sh). Also insert version numbers in the filenames of all build products. (CVS 1601) check-in: f2b8d358 user: drh tags: version_2
2004-06-14
11:58
Do not authenticate statements when reading the schema. Backport of bug fix in (1588) to version 2. (CVS 1591) check-in: 24adf9ed user: drh tags: version_2
2004-06-09
23:20
Version 2.8.14 (CVS 1554) check-in: 7d393774 user: drh tags: version_2
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/auth.c.

    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used to implement the sqlite_set_authorizer()
    13     13   ** API.  This facility is an optional feature of the library.  Embedded
    14     14   ** systems that do not need this facility may omit it by recompiling
    15     15   ** the library with -DSQLITE_OMIT_AUTHORIZATION=1
    16     16   **
    17         -** $Id: auth.c,v 1.12 2004/02/22 18:40:57 drh Exp $
           17  +** $Id: auth.c,v 1.12.2.1 2004/06/14 11:58:37 drh Exp $
    18     18   */
    19     19   #include "sqliteInt.h"
    20     20   
    21     21   /*
    22     22   ** All of the code in this file may be omitted by defining a single
    23     23   ** macro.
    24     24   */
................................................................................
   170    170     const char *zArg1,
   171    171     const char *zArg2,
   172    172     const char *zArg3
   173    173   ){
   174    174     sqlite *db = pParse->db;
   175    175     int rc;
   176    176   
   177         -  if( db->xAuth==0 ){
          177  +  if( db->init.busy || db->xAuth==0 ){
   178    178       return SQLITE_OK;
   179    179     }
   180    180     rc = db->xAuth(db->pAuthArg, code, zArg1, zArg2, zArg3, pParse->zAuthContext);
   181    181     if( rc==SQLITE_DENY ){
   182    182       sqliteErrorMsg(pParse, "not authorized");
   183    183       pParse->rc = SQLITE_AUTH;
   184    184     }else if( rc!=SQLITE_OK && rc!=SQLITE_IGNORE ){