]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't log errors when IPv6 listeners fail because IPv6 is disabled (Issue #25)
authorMichael R Sweet <msweet@msweet.org>
Sat, 14 Nov 2020 13:47:43 +0000 (08:47 -0500)
committerMichael R Sweet <msweet@msweet.org>
Sat, 14 Nov 2020 13:47:43 +0000 (08:47 -0500)
CHANGES-OPENPRINTING.md
scheduler/listen.c

index dbe3e934086075f88453abe328dd103f18068255..9876ea6536702d624def978e3ec892a298ef3752 100644 (file)
@@ -17,6 +17,8 @@ Changes in CUPS v2.3.3op1
   (Issue #5)
 - The scheduler now allows root backends to have world read permissions but not
   world execute permissions (Issue #21)
+- Failures to bind IPv6 listener sockets no longer cause errors if IPv6 is
+  disabled on the host (Issue #25)
 - The SNMP backend now supports the HP and Ricoh vendor MIBs (Issue #28)
 - The scheduler no longer includes a timestamp in files it writes (Issue #29)
 - The systemd service names are now "cups.service" and "cups-lpd.service"
index 92c7c626b182accfae0af62f21eb2cff94d7c0bb..dbf959b25aac2a32c55464472789b38d62d1ad89 100644 (file)
@@ -160,7 +160,7 @@ cupsdStartListening(void)
 
       if (lis->fd == -1)
       {
-       cupsdLogMessage(CUPSD_LOG_ERROR,
+       cupsdLogMessage(errno == EAFNOSUPPORT ? CUPSD_LOG_INFO : CUPSD_LOG_ERROR,
                        "Unable to open listen socket for address %s:%d - %s.",
                        s, p, strerror(errno));