From nobody Tue Oct 11 23:27:58 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MnBly2JSyz4dh96; Tue, 11 Oct 2022 23:27:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MnBly1lwXz3fkv; Tue, 11 Oct 2022 23:27:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665530878; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wwzPE+tX7WiBXmtevO6Oy86AVcGLdKdctHZ8bjnCWds=; b=Cqn+RL/hSGu+9JrBjXkGuWPM7PUVcFMXYx6eyeRzJB+WfExMOIpJd+GV11/2gAZNgHAzyV xtk9IrEXE+XQNB9SYmW/9YpM6lK/HYGVfRcuwUTUSxPaKkay45GP9vd6bxmI4T9SiwrWRZ 98HRLEaGttigIWqSjNyVWNOyBVV2QwQ0djx4WakfUHTV/eUEyC+HlVAExsQMW5MCE8xxJr Kb7vMxisY1rLvcAXq6C3/G/YzmdwuKkUgB3pUykl5FJdbLkMk1ovVNDowN1TMf3e48PCHV yNr8321mgemy0BZ/75y0Vsr0/0uh6tlC0VzzkOc22RC1S+rJ7CaKi5I9gWnQYg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MnBly0mY8z16kf; Tue, 11 Oct 2022 23:27:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29BNRwft011690; Tue, 11 Oct 2022 23:27:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29BNRw15011689; Tue, 11 Oct 2022 23:27:58 GMT (envelope-from git) Date: Tue, 11 Oct 2022 23:27:58 GMT Message-Id: <202210112327.29BNRw15011689@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Eugene Grosbein Subject: git: 9d82137e7e7f - main - net/mpd5: do not use negative value for socket backlog List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9d82137e7e7f1fef804e31bbe52fb8161a868b01 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665530878; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wwzPE+tX7WiBXmtevO6Oy86AVcGLdKdctHZ8bjnCWds=; b=QGY5ibrtK6HbHk27XVUojlIdnTObtjcMGKmkGLk6SYvrEdgoc7L+ONLZ1NTsjN5w1V+dYF PkPqVPNr9gO1si5CtGANus/o3mktwCt6V//whJhH0iiVJO908A2uXPK4fhTKMsVM/kx/+1 8iozIHDj5tjG3zHUNtxlmej7dX9703X8RtJbPIeLGvDjkbsRxV67bqbWZf8yxnQ1S07wOR g5sGc5E8EoNfKJpByIfQl4wFzlovdOkZeu9fpa6xhXP/Roq+EbnJ1atW+/ye0GSVkfBnD3 LCuJPoGyHyk/debNhLdeQh7j41pkxIf/Mf7Cp6bzFp/EgA2rNMr8HLbMO2t4JQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665530878; a=rsa-sha256; cv=none; b=GSUW/TmZIAsF3R6Q7zBM3p3+8ESe5HmYKOtYqH3MCjvxoszB2A4b5Jn6DKM2ZROSWDc62K PGjuBy2z6I9gAo+9fmDPzFRugYK0+Byj8TrI1AOT/NiIMhdgItItAKZwUMUhoS9zXFM9XW sqz8u6SWbxaX3ztfwYdTdEMM2G2I6jqrK2pGlDNocJKsP2s7Wio9WetL1DxK3B+wJUq1Wt Z3vcDvXmPI4N7xW575xUPQRsrXc8FsNkEaBpUm6vT3UHZ6xz6zSXRL8AvUR7V4ix3nWAnR xuAcCaCXud7PCyepcJ8BsBiGzY7uIZRKD1pLFGsZc2pY4qM9AUfoyUvvOa5+ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/ports/commit/?id=9d82137e7e7f1fef804e31bbe52fb8161a868b01 commit 9d82137e7e7f1fef804e31bbe52fb8161a868b01 Author: Eugene Grosbein AuthorDate: 2022-10-11 23:19:42 +0000 Commit: Eugene Grosbein CommitDate: 2022-10-11 23:27:51 +0000 net/mpd5: do not use negative value for socket backlog Import r2463 from upstream. As per POSIX, supply INT_MAX for listen(2) to use system default. This changed in preparation for FreeBSD 14. See also: https://reviews.freebsd.org/D31821 --- net/mpd5/Makefile | 2 +- net/mpd5/files/patch-listen | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/net/mpd5/Makefile b/net/mpd5/Makefile index 8ecb88614119..2d605bfabff0 100644 --- a/net/mpd5/Makefile +++ b/net/mpd5/Makefile @@ -1,6 +1,6 @@ PORTNAME= mpd DISTVERSION= 5.9 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/Mpd5/Mpd-${PORTVERSION} PKGNAMESUFFIX= 5 diff --git a/net/mpd5/files/patch-listen b/net/mpd5/files/patch-listen new file mode 100644 index 000000000000..69ab898efea8 --- /dev/null +++ b/net/mpd5/files/patch-listen @@ -0,0 +1,13 @@ +Index: src/util.c +=================================================================== +--- src/util.c (revision 2462) ++++ src/util.c (revision 2463) +@@ -982,7 +982,7 @@ TcpGetListenPort(struct u_addr *addr, in_port_t port, + + /* Make socket available for connections */ + +- if (listen(sock, -1) < 0) ++ if (listen(sock, INT_MAX) < 0) + { + Perror("%s: listen", __FUNCTION__); + (void) close(sock);