libxtrans: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 10 15:28:02 UTC 2022


 Xtranssock.c |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

New commits:
commit 7898badde44cf518da6879c2622b6db9cd709c7d
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri May 6 14:23:59 2022 -0400

    Automatically disable inet6 transport if ipv6 is disabled on machine
    
    If a machine is booted with ipv6.disable=1, trying to bind to an
    AF_INET6 socket will fail with AFNOSUPPORT.
    
    The tcp transport automatically falls back to ipv4 in this case, but
    the more specific inet6 transport just fails.
    
    This failure leads to MakeAllCOTSServerListeners returning a partial
    success.
    
    Unfortunately, the X server can't really contiue with partial successes
    from this function if -displayfd is in use, since that would, in other
    cases, potentially lead to the -displayfd electing a display number that
    is potentially partially in use by a rogue program.
    
    This commit addresses the issue by automatically disabling transports
    when they fail with AFNOSUPPORT, leading them to get ignored, rather than
    proceeding and ultimately returning from MakeAllCOTSServerListerns with
    partial=TRUE.



More information about the xorg-commit mailing list