doc: add setuid warning to uv_exepath

This commit is contained in:
Ben Noordhuis 2026-02-04 22:43:14 +01:00 committed by Saúl Ibarra Corretgé
parent e50d4e672e
commit 0db25a91f0

View File

@ -522,6 +522,10 @@ API
Gets the executable path. You *must* call `uv_setup_args` before calling Gets the executable path. You *must* call `uv_setup_args` before calling
this function. this function.
Be careful in setuid executables. On some platforms the executable path
is an arbitrary string that is controlled by the user. On other platforms
environment variables are consulted that may be under control of the user.
.. c:function:: int uv_cwd(char* buffer, size_t* size) .. c:function:: int uv_cwd(char* buffer, size_t* size)
Gets the current working directory, and stores it in `buffer`. If the Gets the current working directory, and stores it in `buffer`. If the