From winfried@spitfire.303.krakow.pl  Wed Jul  3 19:31:13 2002
Return-Path: <winfried@spitfire.303.krakow.pl>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 176FA37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  3 Jul 2002 19:31:13 -0700 (PDT)
Received: from spitfire.303.krakow.pl (spitfire.303.krakow.pl [62.233.208.97])
	by mx1.FreeBSD.org (Postfix) with SMTP id C8C9A43E58
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  3 Jul 2002 19:31:11 -0700 (PDT)
	(envelope-from winfried@spitfire.303.krakow.pl)
Received: (qmail 65746 invoked by uid 1001); 4 Jul 2002 02:31:10 -0000
Message-Id: <20020704023110.65635.qmail@spitfire.303.krakow.pl>
Date: 4 Jul 2002 02:31:10 -0000
From: Jan Srzednicki <winfried@spitfire.303.krakow.pl>
Reply-To: Jan Srzednicki <winfried@spitfire.303.krakow.pl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: screen w/o suid and locale
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40163
>Category:       ports
>Synopsis:       screen w/o suid and locale
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cy
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 03 19:40:01 PDT 2002
>Closed-Date:    Mon Aug 30 14:12:42 GMT 2004
>Last-Modified:  Mon Aug 30 14:12:42 GMT 2004
>Originator:     Jan Srzednicki
>Release:        FreeBSD 4.6-RC i386
>Organization:
Dywizjonet
>Environment:
System: FreeBSD spitfire.303.krakow.pl 4.6-RC FreeBSD 4.6-RC #5: Tue May 21 23:07:20 CEST 2002 root@spitfire.303.krakow.pl:/usr/obj/usr/src/sys/GRABKI i386


	
>Description:

Recent screen (3.9.11) has a bug with handling locales. It uses
unitialized variables in there, which turns to be a problem when
screen is set non-suid.

Here's more detailed problem description, along with the patch:

http://www.dekaino.net/screen/screen-3.9.11.seteuid-patch

	
>How-To-Repeat:

Install screen from ports. Remove the suid bit on the binary.
Set the LANG env to sth (pl_PL.ISO_8859-2 in my case).
Execute screen. You will get:

seteuid: Operation not permitted

	
>Fix:

The patch in the link above fixes this and works fine for me.

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->cy 
Responsible-Changed-By: cy 
Responsible-Changed-When: Wed Jul 3 20:03:58 PDT 2002 
Responsible-Changed-Why:  
I'll take care of this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40163 
State-Changed-From-To: open->closed 
State-Changed-By: vs 
State-Changed-When: Mon Aug 30 14:10:45 GMT 2004 
State-Changed-Why:  
This should have been fixed by now: screen is at 4.x and the patch 
has disappeared anyway. Also I didn't note any defects when testing. 
Thanks for your submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40163 
>Unformatted:
