Commit 4a287cc2 authored by Olivier Fourdan's avatar Olivier Fourdan Committed by Adam Jackson

xwayland: Allow for regular transport types for listen

Xwayland uses the command line option “-listen” to pass file descriptors
from the Wayland compositor.

That breaks the traditional, documented behavior of the “-listen”
command line option which is to enable a transport type.

Checks if the given option starts with a digit, otherwise treat it as a
regular transport type.

Closes: xorg/xserver#817
Suggested-by: Rodrigo Exterckötter Tjäder
Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
parent 0dc0cef4
......@@ -115,6 +115,10 @@ ddxProcessArgument(int argc, char *argv[], int i)
else if (strcmp(argv[i], "-listen") == 0) {
CHECK_FOR_REQUIRED_ARGUMENTS(1);
/* Not an FD */
if (!isdigit(*argv[i + 1]))
return 0;
NoListenAll = TRUE;
if (listen_fd_count == ARRAY_SIZE(listen_fds))
FatalError("Too many -listen arguments given, max is %zu\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment