1
0
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:
drh
2006-02-13 18:42:21 +00:00
parent 97bbdc0aa2
commit 4eb9a9792a
4 changed files with 14 additions and 10 deletions

View File

@@ -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;
}