From 47bb0b8c293f4d730d6739fe8e20039e8887a724 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 25 Apr 2024 12:43:19 +0200 Subject: [PATCH] errno-util: consider ENOPROTOOPT another "not supported" It's generated by not supported getsocktopt()/setsockopt() options, and it's just another way for saying "not supported", hence treat it as such. --- src/basic/errno-util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/basic/errno-util.h b/src/basic/errno-util.h index 27804e63829..48b76e4bf70 100644 --- a/src/basic/errno-util.h +++ b/src/basic/errno-util.h @@ -167,7 +167,8 @@ static inline bool ERRNO_IS_NEG_NOT_SUPPORTED(intmax_t r) { -EAFNOSUPPORT, -EPFNOSUPPORT, -EPROTONOSUPPORT, - -ESOCKTNOSUPPORT); + -ESOCKTNOSUPPORT, + -ENOPROTOOPT); } _DEFINE_ABS_WRAPPER(NOT_SUPPORTED); -- 2.47.3