Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2010 08:37:33 GMT
From:      well-wisher <regex@bk.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/150519: [PATCH] net-p2p/transmission-daemon
Message-ID:  <201009130837.o8D8bXnL015883@www.freebsd.org>
Resent-Message-ID: <201009130840.o8D8e2I8044648@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         150519
>Category:       ports
>Synopsis:       [PATCH] net-p2p/transmission-daemon
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 13 08:40:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     well-wisher
>Release:        
>Organization:
>Environment:
FreeBSD Null 8.1-STABLE FreeBSD 8.1-STABLE #9 r211535M: Sat Aug 21 15:35:12 YEKST 2010     di@Null:/usr/obj/usr/src/sys/Null  amd64
>Description:
if system build WITHOUT_INET6="YES" and WITHOUT_INET6_SUPPORT="YES"
transmission floods syslog with tons of messages like
Sep 13 14:02:05 Null transmission-daemon[13492]: Couldn't create socket: Protocol not supported (fdlimit.c:651)
Sep 13 14:02:15 Null last message repeated 5 times
Sep 13 14:04:19 Null last message repeated 29 times

>How-To-Repeat:

>Fix:
put patch below to net-p2p/transmission-cli/files/patch-aa
(according to man-page, BSD-implementation of `socket' syscall never sets EAFNOSUPPORT)


Patch attached with submission follows:

--- libtransmission/fdlimit.c.orig	2010-09-13 14:17:18.000000000 +0600
+++ libtransmission/fdlimit.c	2010-09-13 14:04:19.000000000 +0600
@@ -646,7 +646,7 @@
     if( gFd->socketCount < gFd->socketLimit )
         if( ( s = socket( domain, type, 0 ) ) < 0 )
         {
-            if( sockerrno != EAFNOSUPPORT )
+            if( sockerrno != EPROTONOSUPPORT )
                 tr_err( _( "Couldn't create socket: %s" ),
                         tr_strerror( sockerrno ) );
         }


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009130837.o8D8bXnL015883>