doc: add setuid warning to uv_exepath

This commit is contained in:
Ben Noordhuis 2026-02-04 22:43:14 +01:00
parent e50d4e672e
commit fb1ccbcce0

View File

@ -522,6 +522,10 @@ API
Gets the executable path. You *must* call `uv_setup_args` before calling
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)
Gets the current working directory, and stores it in `buffer`. If the