aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-01-11 22:45:20 +0000
committerstephan <stephan@noemail.net>2023-01-11 22:45:20 +0000
commita7c498599f917607542bcd7003c445723aba9127 (patch)
treee96d905dffd46e39667d019e1f2cc8a4a31358ff /src/os_unix.c
parent60a1a0f7df99e03bba7abc45f526e372c20d2fdc (diff)
parent8518eaccd79ae83a55fad3c3fa545beb16fb127c (diff)
downloadsqlite-a7c498599f917607542bcd7003c445723aba9127.tar.gz
sqlite-a7c498599f917607542bcd7003c445723aba9127.zip
Merge trunk into wasi-patches branch and add missing yes/no result to the configure script's output for the --with-wasi-sdk=PATH test.
FossilOrigin-Name: adc0ede0a43241b85563408d0de8e640a75ec4f7bdfe5e48acc5cdd6b182b88c
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index e5ce36ebf..78ce223d9 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -6506,12 +6506,10 @@ static void appendOnePathElement(
if( zName[0]=='.' ){
if( nName==1 ) return;
if( zName[1]=='.' && nName==2 ){
- if( pPath->nUsed<=1 ){
- pPath->rc = SQLITE_ERROR;
- return;
+ if( pPath->nUsed>1 ){
+ assert( pPath->zOut[0]=='/' );
+ while( pPath->zOut[--pPath->nUsed]!='/' ){}
}
- assert( pPath->zOut[0]=='/' );
- while( pPath->zOut[--pPath->nUsed]!='/' ){}
return;
}
}