]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Provide a meaningful errno if FD_CLOEXEC is missing
authorVolker Lendecke <vl@samba.org>
Fri, 22 Jan 2021 10:13:53 +0000 (11:13 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 26 Jan 2021 00:10:31 +0000 (00:10 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/blocking.c

index 0d845c0b2c4e5fae8aa0271946035c953b393d92..6d7fc91067676110de1285e7fe2d4011fd30792b 100644 (file)
@@ -69,6 +69,8 @@ _PUBLIC_ bool smb_set_close_on_exec(int fd)
                        return true;
                }
        }
+#else
+       errno = ENOSYS;
 #endif
        return false;
 }