summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-terms/hanterm/files/hanterm-3.1.6-utmp.patch')
-rw-r--r--x11-terms/hanterm/files/hanterm-3.1.6-utmp.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/x11-terms/hanterm/files/hanterm-3.1.6-utmp.patch b/x11-terms/hanterm/files/hanterm-3.1.6-utmp.patch
new file mode 100644
index 000000000000..32659263b5d1
--- /dev/null
+++ b/x11-terms/hanterm/files/hanterm-3.1.6-utmp.patch
@@ -0,0 +1,14 @@
+diff --git a/main.c b/main.c
+index ac15032..e465329 100644
+--- a/main.c
++++ b/main.c
+@@ -1936,7 +1936,9 @@ spawn ()
+ #endif /* LASTLOG */
+ #endif /* UTMP */
+
++#ifdef UTMP
+ memset (&utmp, '\0', sizeof(utmp));
++#endif
+
+ screen->uid = getuid();
+ screen->gid = getgid();