Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Sep 2021 09:28:38 GMT
From:      Koichiro Iwao <meta@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e2f69c2a24e6 - main - net/tigervnc-server: fix obtaining HOST_NAME_MAX
Message-ID:  <202109300928.18U9ScCY079625@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by meta:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e2f69c2a24e619abba8c500d83f5ba456428de03

commit e2f69c2a24e619abba8c500d83f5ba456428de03
Author:     Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2021-09-30 09:18:31 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
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);



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