diff options
author | stephan <stephan@noemail.net> | 2023-01-11 22:45:20 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-01-11 22:45:20 +0000 |
commit | a7c498599f917607542bcd7003c445723aba9127 (patch) | |
tree | e96d905dffd46e39667d019e1f2cc8a4a31358ff /src/os_unix.c | |
parent | 60a1a0f7df99e03bba7abc45f526e372c20d2fdc (diff) | |
parent | 8518eaccd79ae83a55fad3c3fa545beb16fb127c (diff) | |
download | sqlite-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.c | 8 |
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; } } |