mirror of
https://github.com/curl/curl.git
synced 2026-07-24 02:47:17 +03:00
libssh2: replace access() with stat()
Prefer `stat()` to verify the presence of key files. This drops the last uses of `access()` in the codebase, which was reported to cause issues in some cases. Also add `access()` to the list of banned functions in checksrc. Ref: https://github.com/curl/curl/pull/13412#issuecomment-2065505415 Ref: https://github.com/curl/curl/pull/13482#issuecomment-2078980522 Ref: #13497 Co-authored-by: Jay Satiro Closes #13498
This commit is contained in:
parent
7f7ad97bf1
commit
602fc213ae
2 changed files with 7 additions and 5 deletions
|
|
@ -720,7 +720,8 @@ sub scanfile {
|
|||
strtok|
|
||||
v?sprintf|
|
||||
(str|_mbs|_tcs|_wcs)n?cat|
|
||||
LoadLibrary(Ex)?(A|W)?)
|
||||
LoadLibrary(Ex)?(A|W)?|
|
||||
access)
|
||||
\s*\(
|
||||
/x) {
|
||||
checkwarn("BANNEDFUNC",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue