mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-25 20:58:26 +03:00
Disable the /./ and /../ collapser logic in sqlite3OsFullPathname under Unix. (CVS 3092)
FossilOrigin-Name: 111a426b3e2fae77c9e6c3cd903fd80652b23720
This commit is contained in:
@@ -1539,7 +1539,6 @@ static int unixClose(OsFile **pId){
|
||||
*/
|
||||
char *sqlite3UnixFullPathname(const char *zRelative){
|
||||
char *zFull = 0;
|
||||
int i, j;
|
||||
if( zRelative[0]=='/' ){
|
||||
sqlite3SetString(&zFull, zRelative, (char*)0);
|
||||
}else{
|
||||
@@ -1552,11 +1551,14 @@ char *sqlite3UnixFullPathname(const char *zRelative){
|
||||
(char*)0);
|
||||
sqliteFree(zBuf);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*
|
||||
** Remove "/./" path elements and convert "/A/./" path elements
|
||||
** to just "/".
|
||||
*/
|
||||
if( zFull ){
|
||||
int i, j;
|
||||
for(i=j=0; zFull[i]; i++){
|
||||
if( zFull[i]=='/' ){
|
||||
if( zFull[i+1]=='/' ) continue;
|
||||
@@ -1574,6 +1576,8 @@ char *sqlite3UnixFullPathname(const char *zRelative){
|
||||
}
|
||||
zFull[j] = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
return zFull;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user