From 890b24b2d7d988cc0fb0d884aa38fcac5267d2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=BC=C3=9F?= Date: Thu, 16 Mar 2023 10:57:14 +0100 Subject: [PATCH] doc: note misleading error code in `uv_os_get_passwd` --- docs/src/misc.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/misc.rst b/docs/src/misc.rst index 39241df8..e75cd54a 100644 --- a/docs/src/misc.rst +++ b/docs/src/misc.rst @@ -541,6 +541,10 @@ API memory allocated to `pwd` needs to be freed with :c:func:`uv_os_free_passwd`. + .. note:: + If the effective uid does not have an entry in the password file this + function will return ENOENT even if the file exists. + .. versionadded:: 1.9.0 .. c:function:: void uv_os_free_passwd(uv_passwd_t* pwd)