diff options
author | Koichiro Iwao <meta@FreeBSD.org> | 2021-09-30 09:18:31 +0000 |
---|---|---|
committer | Koichiro Iwao <meta@FreeBSD.org> | 2021-09-30 09:25:33 +0000 |
commit | e2f69c2a24e619abba8c500d83f5ba456428de03 (patch) | |
tree | 91797ab190cada67430e5bba9e66cae53e7911cb | |
parent | 574a94d706c6d5777819d5ace280acace2e4d5e8 (diff) | |
download | ports-e2f69c2a24e619abba8c500d83f5ba456428de03.tar.gz ports-e2f69c2a24e619abba8c500d83f5ba456428de03.zip |
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
-rw-r--r-- | net/tigervnc-server/Makefile | 2 | ||||
-rw-r--r-- | 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); |