[PATCH] os: restrict display names to digits
Keith Packard
keithp at keithp.com
Mon Jan 13 22:43:36 PST 2014
Peter Hutterer <peter.hutterer at who-t.net> writes:
> We call atoi() on the server's display to get the socket but otherwise use the
> unmodified display for log file name, xkb paths, etc. This results in
> Xorg :banana being the equivalent of Xorg :0, except for the log files being
> in /var/log/Xorg.banana.log. I'm not sure there's a good use-case for this
> behaviour.
>
> Check the display for something that looks reasonable, i.e. digits only, but
> do allow for :0.0 (i.e. digits, followed by a period, followed by one or two
> digits).
Reviewed-by: Keith Packard <keithp at keithp.com>
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140113/31ecd026/attachment.pgp>
More information about the xorg-devel
mailing list