NetBSD Problem Report #26923

Received: (qmail 17647 invoked by uid 605); 12 Sep 2004 10:31:15 -0000
Message-Id: <20040912100953.881FF150C9@firefly.localdomain>
Date: Sun, 12 Sep 2004 19:09:53 +0900 (JST)
From: hira@po6.nsk.ne.jp
Sender: gnats-bugs-owner@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: xterm does not support luit
X-Send-Pr-Version: 3.95

>Number:         26923
>Category:       misc
>Synopsis:       xterm does not support luit
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 12 10:32:00 +0000 2004
>Closed-Date:    Tue Feb 28 21:18:45 +0000 2017
>Last-Modified:  Tue Feb 28 21:18:45 +0000 2017
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY) #17: Sun Sep 12 10:58:46 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY i386
Architecture: i386
Machine: i386
>Description:
	XTerm which built by reachover x11 does not support luit.
	Native one supports luit.

>How-To-Repeat:

>Fix:
	add -DOPT_LUIT_PROG to CPPFLAGS

Index: x11/bin/xterm/Makefile
===================================================================
RCS file: /cvs/cvsroot/src/x11/bin/xterm/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- x11/bin/xterm/Makefile	9 Jun 2004 20:37:41 -0000	1.7
+++ x11/bin/xterm/Makefile	12 Sep 2004 07:02:21 -0000
@@ -10,7 +10,7 @@

 CPPFLAGS+=	-I${X11SRCDIR.xc}/programs/xterm \
 		-I${DESTDIR}${X11INCDIR}/freetype2 \
-		-DSCROLLBAR_RIGHT -DOPT_WIDE_CHARS \
+		-DSCROLLBAR_RIGHT -DOPT_WIDE_CHARS -DOPT_LUIT_PROG \
 		-DXRENDERFONT -DXFREE86_FT2 \
 		-DPROJECTROOT=${X11ROOTDIR}


>Release-Note:
>Audit-Trail:
From: Juan Romero Pardines <xtraeme@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/26923 CVS commit: src/x11/bin/xterm
Date: Sun, 24 Sep 2006 07:59:59 +0000 (UTC)

 Module Name:	src
 Committed By:	xtraeme
 Date:		Sun Sep 24 07:59:59 UTC 2006

 Modified Files:
 	src/x11/bin/xterm: Makefile

 Log Message:
 PR misc/26923 sent by Kouichirou Hiratsuka "xterm does not support luit".

 Patch applied, thanks.


 To generate a diff of this commit:
 cvs rdiff -r1.7 -r1.8 src/x11/bin/xterm/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: xtraeme@netbsd.org
State-Changed-When: Sun, 24 Sep 2006 08:00:28 +0000
State-Changed-Why:
Patch applied, thanks.


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
.


State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Tue, 28 Feb 2017 21:18:45 +0000
State-Changed-Why:
fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.