doc: add setuid warning to uv_exepath
This commit is contained in:
parent
e50d4e672e
commit
0db25a91f0
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user