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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user