git: e2f69c2a24e6 - main - net/tigervnc-server: fix obtaining HOST_NAME_MAX
Koichiro Iwao
meta at FreeBSD.org
Thu Sep 30 09:28:38 UTC 2021
The branch main has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e2f69c2a24e619abba8c500d83f5ba456428de03
commit e2f69c2a24e619abba8c500d83f5ba456428de03
Author: Koichiro Iwao <meta at FreeBSD.org>
AuthorDate: 2021-09-30 09:18:31 +0000
Commit: Koichiro Iwao <meta at 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);
More information about the dev-commits-ports-all
mailing list