Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 1998 11:18:34 -0700 (PDT)
From:      parag@codegen.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7430: Port x11/kdebase's kvt terminal emulator should update /var/run/utmp
Message-ID:  <199807291818.LAA14506@pinhead.parag.codegen.com>

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

>Number:         7430
>Category:       ports
>Synopsis:       kvt terminal emulator does not update /var/run/utmp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 29 11:20:02 PDT 1998
>Last-Modified:
>Originator:     Parag Patel
>Organization:
CodeGen, Inc.
>Release:        FreeBSD 2.2.7-STABLE i386
>Environment:

	FreeBSD 2.2.7-STABLE
	300Mhz Pentium II, 128Mb memory, IBM 4Gb fast-wide SCSI disk

>Description:

	The kvt terminal emulator in the x11/kdebase port does not update
	the /var/run/utmp file like xterm does.  This probably isn't a
	big deal, but it's good form to update it whenever ptys are
	allocated and freed.

>How-To-Repeat:

	

	Launch "kvt", then type "who" or "w".
>Fix:

	This patch to kvt/utmp.c turns on the correct code to update
	utmp for BSD systems.  These three macros should probably be set
	in kdebase/config.h but I'm not familiar enough with the
	configure system to know the right files to modify.

	utmp will only be updated if kvt is setuid-root.  If it isn't,
	then it won't be updated.  I don't know if the default install
	should setuid kvt to root or not, but given that all the
	screen-savers are installed that way, it may as well.


*** kvt/utmp.c-org	Fri May 15 19:31:35 1998
--- kvt/utmp.c	Fri May 15 19:32:49 1998
***************
*** 73,78 ****
--- 73,82 ----
  #include <stdio.h>
  #include <memory.h>
  
+ #define UTMP_SUPPORT
+ #define BSD
+ #define TTYTAB "/etc/ttys"
+ 
  void cleanutent(void);
  void makeutent(char *);
  
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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