]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
errno-util: consider ENOPROTOOPT another "not supported"
authorLennart Poettering <lennart@poettering.net>
Thu, 25 Apr 2024 10:43:19 +0000 (12:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Apr 2024 10:43:21 +0000 (12:43 +0200)
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

index 27804e638296b5187f938b06f6f7db40e4703b4c..48b76e4bf70dffac92ba6cadca9d85eb8de66515 100644 (file)
@@ -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);