1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Use osReadlink() in os_unix.c, not readlink() directly.

FossilOrigin-Name: c3da4c1611cebd9f9d695892a3ffddc47d5f0db1a1ea8bd2b4f83ef7673b68de
This commit is contained in:
drh
2022-05-11 17:45:50 +00:00
parent e8346d0a88
commit b302c065d8
3 changed files with 8 additions and 11 deletions

View File

@@ -6483,7 +6483,7 @@ static void appendOnePathElement(
pPath->rc = SQLITE_CANTOPEN_BKPT;
return;
}
got = readlink(zIn, zLnk, sizeof(zLnk)-2);
got = osReadlink(zIn, zLnk, sizeof(zLnk)-2);
if( got<=0 || got>=sizeof(zLnk)-2 ){
pPath->rc = unixLogError(SQLITE_CANTOPEN_BKPT, "readlink", zIn);
return;