From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 30 13:50:09 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FB6B1065672 for ; Thu, 30 Dec 2010 13:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1B0DE8FC0C for ; Thu, 30 Dec 2010 13:50:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBUDo8vX029854 for ; Thu, 30 Dec 2010 13:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBUDo8bV029853; Thu, 30 Dec 2010 13:50:08 GMT (envelope-from gnats) Resent-Date: Thu, 30 Dec 2010 13:50:08 GMT Resent-Message-Id: <201012301350.oBUDo8bV029853@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oliver Pinter Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E8F11065672 for ; Thu, 30 Dec 2010 13:46:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 7EC958FC13 for ; Thu, 30 Dec 2010 13:46:03 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBUDk3sN075598 for ; Thu, 30 Dec 2010 13:46:03 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id oBUDk36j075597; Thu, 30 Dec 2010 13:46:03 GMT (envelope-from nobody) Message-Id: <201012301346.oBUDk36j075597@red.freebsd.org> Date: Thu, 30 Dec 2010 13:46:03 GMT From: Oliver Pinter To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/153548: gnu screen locking [with patch] X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2010 13:50:09 -0000 >Number: 153548 >Category: ports >Synopsis: gnu screen locking [with patch] >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Dec 30 13:50:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Oliver Pinter >Release: >Organization: >Environment: >Description: use system password, when lock screen >How-To-Repeat: start screen C-a x >Fix: Patch attached with submission follows: diff --git attacher.c attacher.c index 2de1ed9..f9ceac7 100644 --- attacher.c +++ attacher.c @@ -676,7 +676,7 @@ LockTerminal() setuid(real_uid); /* this should be done already */ #endif closeallfiles(0); /* important: /etc/shadow may be open */ - execl(prg, "SCREEN-LOCK", NULL); + execl(prg, "SCREEN-LOCK", "-p", "-n", NULL); /* use system passwd for lock */ exit(errno); } if (pid == -1) >Release-Note: >Audit-Trail: >Unformatted: >>enter the key<< >>again << after this patch added only C-a x and the lock use the main password