From cc929f87ceac84c71792c9e050630f7a35934266 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Thu, 7 Jan 2016 20:19:25 -0600 Subject: [PATCH] Don't generate log messages about "setsockopt (IP_TOS)" not working on GNO. This isn't currently supported by MariGNOtti, so it always generates the message, but it's really not important. --- telnetd/telnetd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telnetd/telnetd.c b/telnetd/telnetd.c index be5b8f6..0faca47 100644 --- a/telnetd/telnetd.c +++ b/telnetd/telnetd.c @@ -415,7 +415,7 @@ main(int argc, char *argv[]) if (tos && (setsockopt(STDIN_FILENO, IPPROTO_IP, IP_TOS, (char *)&tos, sizeof(tos)) < 0) - && (errno != ENOPROTOOPT) ) + && (errno != ENOPROTOOPT) && (errno != EINVAL) ) syslog(LOG_WARNING, "setsockopt (IP_TOS): %m"); } #endif /* defined(IPPROTO_IP) && defined(IP_TOS) */