[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#797008: xterm: not logging to utmp



On Wed, Aug 26, 2015 at 02:56:52PM -0600, Bob Proulx wrote:
> Package: xterm
> Version: 319-1
> Severity: normal
> 
> Apparently since the latest xterm version 319-1 which arrived on my
> Sid machine 2015-08-23 14:52 -0600 xterm no longer logs entries to the
> utmp file.  Using "last -10" shows the most recent entries to have
> been logged prior to that update.  Even explicitly adding +ut does not
> log to utmp.

yes (small blunder):

diff -u -r1.772 main.c
--- main.c	2015/08/19 00:25:35	1.772
+++ main.c	2015/08/26 23:39:36
@@ -3679,7 +3679,7 @@
     added_utmp_entry = False;
 #if defined(USE_UTEMPTER)
 #undef UTMP
-    if (xw->misc.login_shell && !resource.utmpInhibit) {
+    if ((xw->misc.login_shell || !command_to_exec) && !resource.utmpInhibit) {
 	struct UTMP_STR dummy;
 
 	/* Note: utempter may trim it anyway */

FreeBSD reported it early this morning...

-- 
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


Reply to: