diff options
author | danielk1977 <danielk1977@noemail.net> | 2004-06-14 11:35:17 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2004-06-14 11:35:17 +0000 |
commit | 66b978a415e1eea1d4ac0ac4d6031264083fd5f7 (patch) | |
tree | 0960b79a64f107d0bd6e2dd329a61d5a0509a5b4 /src/auth.c | |
parent | 3fe83ac7a1454a01278967691a82a38b657b8bbf (diff) | |
download | sqlite-66b978a415e1eea1d4ac0ac4d6031264083fd5f7.tar.gz sqlite-66b978a415e1eea1d4ac0ac4d6031264083fd5f7.zip |
Don't invoke authorisation callback during database initialisation. (CVS 1588)
FossilOrigin-Name: 293fbf0aa5c221bc341d0d9afc73d459f427f940
Diffstat (limited to 'src/auth.c')
-rw-r--r-- | src/auth.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/auth.c b/src/auth.c index 6984a1d5e..d93ea9b0b 100644 --- a/src/auth.c +++ b/src/auth.c @@ -14,7 +14,7 @@ ** systems that do not need this facility may omit it by recompiling ** the library with -DSQLITE_OMIT_AUTHORIZATION=1 ** -** $Id: auth.c,v 1.14 2004/05/10 10:34:34 danielk1977 Exp $ +** $Id: auth.c,v 1.15 2004/06/14 11:35:18 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -174,6 +174,11 @@ int sqlite3AuthCheck( sqlite *db = pParse->db; int rc; + /* Don't do any authorization checks if the database is initialising. */ + if( db->init.busy ){ + return SQLITE_OK; + } + if( db->xAuth==0 ){ return SQLITE_OK; } |