Subject: Re: misc/26923 (xterm does not support luit)
To: None <misc-bug-people@netbsd.org, netbsd-bugs@netbsd.org,>
From: None <soda@netbsd.org>
List: netbsd-bugs
Date: 10/10/2006 17:01:13
Synopsis: xterm does not support luit

State-Changed-From-To: closed->open
State-Changed-By: soda@netbsd.org
State-Changed-When: Tue, 10 Oct 2006 17:01:12 +0000
State-Changed-Why:
reopen this issue, because this change made the tty insecure (i.e.
readable by everyone) under multibyte locales (e.g. LANG=ja_JP.eucJP).

for example, "env LANG=ja_JP.eucJP xterm" produces the following warning:
Warning: could not change ownership of tty -- pty is insecure!

And the tty is world readable under the invoked xterm as follows:
% tty
/dev/pts/1 
% ls -l /dev/pts/1
crw-rw-rw-  1 root    wheel  5, 1 Oct  9 10:11 1

To resolve this issue properly, we must let xterm use grantpt(3),
i.e. define USE_USG_PTYS.
see also http://bugs.xfree86.org/show_bug.cgi?id=66

Problem reported by Yasushi Oshima.
For those who can read japanese, please read the following page as well:
http://www.yagoto-urayama.jp/~oshimaya/d/?200610a&to=200610092S1#200610092S1