aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--x11/xterm/Makefile1
-rw-r--r--x11/xterm/files/patch-main.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/x11/xterm/Makefile b/x11/xterm/Makefile
index 43194de820c6..6977a7443fda 100644
--- a/x11/xterm/Makefile
+++ b/x11/xterm/Makefile
@@ -3,6 +3,7 @@
PORTNAME= xterm
PORTVERSION= 319
+PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= ftp://invisible-island.net/xterm/:src1 \
LOCAL/ehaupt:src1 LOCAL/ehaupt:src2
diff --git a/x11/xterm/files/patch-main.c b/x11/xterm/files/patch-main.c
new file mode 100644
index 000000000000..786afabf9593
--- /dev/null
+++ b/x11/xterm/files/patch-main.c
@@ -0,0 +1,11 @@
+--- main.c.orig 2015-08-27 11:22:17 UTC
++++ main.c
+@@ -3679,7 +3679,7 @@ spawnXTerm(XtermWidget xw)
+ 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 */