1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Unix OS interface returns SQLITE_CANTOPEN following a getcwd() failure. (CVS 4384)

FossilOrigin-Name: ed15db4610bc6202c624234e48d234e0005825e4
This commit is contained in:
drh
2007-09-03 17:42:17 +00:00
parent 5ce240a618
commit 70c01456e8
3 changed files with 9 additions and 9 deletions

View File

@@ -2550,7 +2550,7 @@ static int unixFullPathname(sqlite3_vfs *pVfs, const char *zPath, char *zOut){
}else{
int nCwd;
if( getcwd(zOut, MAX_PATHNAME-1)==0 ){
return SQLITE_ERROR;
return SQLITE_CANTOPEN;
}
nCwd = strlen(zOut);
sqlite3_snprintf(MAX_PATHNAME-nCwd, &zOut[nCwd], "/%s", zPath);