mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-15 11:41:13 +03:00
Allow the xAccess method in the VFS to return -1 to signal an I/O
error, and in particular an SQLITE_IOERR_NOMEM. (CVS 4925) FossilOrigin-Name: 3cb704c4c439425781644b1b653b7e50f02fd91e
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*************************************************************************
|
||||
** This file contains code used to implement the PRAGMA command.
|
||||
**
|
||||
** $Id: pragma.c,v 1.173 2008/03/25 17:23:33 drh Exp $
|
||||
** $Id: pragma.c,v 1.174 2008/03/27 22:42:52 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@@ -571,7 +571,7 @@ void sqlite3Pragma(
|
||||
}
|
||||
}else{
|
||||
if( zRight[0]
|
||||
&& !sqlite3OsAccess(db->pVfs, zRight, SQLITE_ACCESS_READWRITE)
|
||||
&& sqlite3OsAccess(db->pVfs, zRight, SQLITE_ACCESS_READWRITE)==0
|
||||
){
|
||||
sqlite3ErrorMsg(pParse, "not a writable directory");
|
||||
goto pragma_out;
|
||||
|
||||
Reference in New Issue
Block a user