pkgsrc/net/rdesktop/patches/patch-xwin.c
wiz 03bfc1bfcc rdesktop: update to 1.9.0.
Provided by Matthias Petermann in PR 54857.

Additionally, remove ssl option per 1.9.0 changelog.

rdesktop (1.9.0)
  * Use GnuTLS and nettle instead of OpenSSL
  * Improved certificate handling
  * Add support for dynamic resize of sessions
  * Add support for alpha cursors
  * Add PulseAudio support
  * Add Kerberos support on macOS
  * Kerberos support no longer requires libgssglue
  * Remove support for rdesktop's custom microphone extension
  * Several fixes to improve compatibility with modern desktops
  * macOS compatibility fixes
  * Improved handling of redirections
  * Many smart card bug fixes
  * Many disk redirection bug fixes
  * Improved logging
  * Lots of other small bug fixes

  -- Pierre Ossman <ossman@cendio.se> 2019-09-18

rdesktop (1.8.6)
  * Fix protocol code handling new licenses

  -- Pierre Ossman <ossman@cendio.se> 2019-05-16

rdesktop (1.8.5)
  * Add bounds checking to protocol handling in order to fix many
    security problems when communicating with a malicious server.

  -- Pierre Ossman <ossman@cendio.se> 2019-05-08
2020-01-15 15:31:28 +00:00

15 lines
426 B
C

$NetBSD: patch-xwin.c,v 1.1 2020/01/15 15:31:28 wiz Exp $
Workaround for undefined HOST_NAME_MAX on BSD systems
--- xwin.c.orig 2019-06-13 12:10:15.000000000 +0000
+++ xwin.c
@@ -1887,7 +1887,7 @@ static void
set_wm_client_machine(Display * dpy, Window win)
{
XTextProperty tp;
- char hostname[HOST_NAME_MAX];
+ char hostname[sysconf(_SC_HOST_NAME_MAX)];
if (gethostname(hostname, sizeof(hostname)) != 0)
return;