• Ray Strode's avatar
    daemon: allow NULs in X11 cookie · eaabecd7
    Ray Strode authored
    We currently allow the slave access to its X server via two
    1) we set XAUTHORITY to point to the X servers Xauthority file
    2) we call XSetAuthorization with the cookie from the Xauthority file
    1) may fail if the user's hostname changes at the wrong moment, and
    a bug in the code meant that 2 would fail if NULs are encoded in the
    auth cookie.
    This commit fixes 2) to work with embedded NUL bytes.
gdm-display.xml 1.85 KB