From owner-dev-commits-ports-all@freebsd.org Thu Sep 30 09:28:38 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 935506AE947; Thu, 30 Sep 2021 09:28:38 +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 4HKnx23Thvz4tyb; Thu, 30 Sep 2021 09:28:38 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 580FD1684; Thu, 30 Sep 2021 09:28:38 +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 18U9ScD0079626; Thu, 30 Sep 2021 09:28:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18U9ScCY079625; Thu, 30 Sep 2021 09:28:38 GMT (envelope-from git) Date: Thu, 30 Sep 2021 09:28:38 GMT Message-Id: <202109300928.18U9ScCY079625@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Koichiro Iwao Subject: git: e2f69c2a24e6 - main - net/tigervnc-server: fix obtaining HOST_NAME_MAX MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: meta X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e2f69c2a24e619abba8c500d83f5ba456428de03 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2021 09:28:38 -0000 The branch main has been updated by meta: URL: https://cgit.FreeBSD.org/ports/commit/?id=e2f69c2a24e619abba8c500d83f5ba456428de03 commit e2f69c2a24e619abba8c500d83f5ba456428de03 Author: Koichiro Iwao AuthorDate: 2021-09-30 09:18:31 +0000 Commit: Koichiro Iwao CommitDate: 2021-09-30 09:25:33 +0000 net/tigervnc-server: fix obtaining HOST_NAME_MAX See Phabricator review for details. Reported by: Adam Wolk Approved by: meta (myself, maintainer) Differential Revision: https://reviews.freebsd.org/D30045 --- net/tigervnc-server/Makefile | 2 +- net/tigervnc-server/files/patch-unix_vncserver_vncsession.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/net/tigervnc-server/Makefile b/net/tigervnc-server/Makefile index fc6dba57aabc..7a078d831523 100644 --- a/net/tigervnc-server/Makefile +++ b/net/tigervnc-server/Makefile @@ -1,4 +1,4 @@ -PORTREVISION= 3 +PORTREVISION= 4 PKGNAMESUFFIX= -server COMMENT= TigerVNC Server diff --git a/net/tigervnc-server/files/patch-unix_vncserver_vncsession.c b/net/tigervnc-server/files/patch-unix_vncserver_vncsession.c index c55fe796e50b..77346fbe2661 100644 --- a/net/tigervnc-server/files/patch-unix_vncserver_vncsession.c +++ b/net/tigervnc-server/files/patch-unix_vncserver_vncsession.c @@ -1,13 +1,11 @@ -diff --git unix/vncserver/vncsession.c unix/vncserver/vncsession.c -index 3e0c98f0..cdac9d1a 100644 ---- unix/vncserver/vncsession.c +--- unix/vncserver/vncsession.c.orig 2020-09-08 12:16:08 UTC +++ unix/vncserver/vncsession.c @@ -339,7 +339,7 @@ static void redir_stdio(const char *homedir, const char *display) { int fd; - char hostname[HOST_NAME_MAX+1]; -+ char hostname[_SC_HOST_NAME_MAX+1]; ++ char hostname[_POSIX_HOST_NAME_MAX+1]; char logfile[PATH_MAX]; fd = open("/dev/null", O_RDONLY);