From: Lennart Poettering Date: Thu, 25 Apr 2024 10:43:19 +0000 (+0200) Subject: errno-util: consider ENOPROTOOPT another "not supported" X-Git-Tag: v256-rc1~10^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47bb0b8c293f4d730d6739fe8e20039e8887a724;p=thirdparty%2Fsystemd.git 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. --- 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);