xorg-x11-xtrans-devel/xtrans-1.0.3-avoid-gethostname.patch
Troy Dawson 401df94363 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/xorg-x11-xtrans-devel#f5e49af8211ed38680a3637bf54e0d33e7f73fde
2020-10-15 14:15:56 -07:00

12 lines
524 B
Diff

diff -up xtrans-1.2.7/Xtransutil.c.jx xtrans-1.2.7/Xtransutil.c
--- xtrans-1.2.7/Xtransutil.c.jx 2012-03-22 23:04:35.000000000 -0400
+++ xtrans-1.2.7/Xtransutil.c 2012-04-09 16:39:29.000000000 -0400
@@ -255,6 +255,7 @@ TRANS(GetMyNetworkId) (XtransConnInfo ci
case AF_UNIX:
{
struct sockaddr_un *saddr = (struct sockaddr_un *) addr;
+ strcpy(hostnamebuf, "unix");
networkId = malloc (3 + strlen (transName) +
strlen (hostnamebuf) + strlen (saddr->sun_path));
sprintf (networkId, "%s/%s:%s", transName,