1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib: Provide a meaningful errno if FD_CLOEXEC is missing

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-01-22 11:13:53 +01:00 committed by Jeremy Allison
parent d4e46cae4c
commit 585b093ce8

View File

@ -69,6 +69,8 @@ _PUBLIC_ bool smb_set_close_on_exec(int fd)
return true; return true;
} }
} }
#else
errno = ENOSYS;
#endif #endif
return false; return false;
} }