From 585b093ce861bbf06d29237481e6a0a748be9156 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 22 Jan 2021 11:13:53 +0100 Subject: [PATCH] lib: Provide a meaningful errno if FD_CLOEXEC is missing Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- lib/util/blocking.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util/blocking.c b/lib/util/blocking.c index 0d845c0b2c4..6d7fc910676 100644 --- a/lib/util/blocking.c +++ b/lib/util/blocking.c @@ -69,6 +69,8 @@ _PUBLIC_ bool smb_set_close_on_exec(int fd) return true; } } +#else + errno = ENOSYS; #endif return false; }