At Mon, 24 Sep 2012 16:07:26 -0400 Adam Jackson <a...@redhat.com> wrote:
> > > On Mon, 2012-09-24 at 15:31 -0400, Robert Heller wrote: > > > If <hostname> is longer than 33 characers, the server can't locate/open > > the config file. I'm guessing someone is using a fixed size buffer (#1 > > nono!) that is not big enough. Yes, some of use use long and meaningful > > domain and host names... > > The hostname buffer is a fixed length anyway, see man gethostname. But > that you're seeing truncation to 33 bytes is certainly a server bug, I > think the MAXHOSTNAMELEN code in hw/xfree86/parser/scan.c should just be > talking about HOST_NAME_MAX like the gethostname man page suggests. Right. HOST_NAME_MAX == 64 on my machine, and allowing for 'xorg.conf.' yields 74 +1 for the NUL byte. The buffer *ought* to be at lease 75 bytes. It *appearently* is only 44 bytes long or something like that, > > - ajax > Content-Description: This is a digitally signed message part > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > > iEYEABECAAYFAlBgvX4ACgkQW4otUKDs0NNOcgCguvsHTJQwCZS8y8qt3PfIjZzR > UDMAnRmGfiy+CwWMOJy+jvb/HHgZ/fcK > =muxj > -----END PGP SIGNATURE----- > > -- Robert Heller -- 978-544-6933 / hel...@deepsoft.com Deepwoods Software -- http://www.deepsoft.com/ () ascii ribbon campaign -- against html e-mail /\ www.asciiribbon.org -- against proprietary attachments _______________________________________________ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com