Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 2010 13:46:03 GMT
From:      Oliver Pinter <oliver.pntr@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153548: gnu screen locking [with patch]
Message-ID:  <201012301346.oBUDk36j075597@red.freebsd.org>
Resent-Message-ID: <201012301350.oBUDo8bV029853@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012301346.oBUDk36j075597>