summaryrefslogtreecommitdiff
path: root/x11/mrxvt/patches
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2011-01-17 21:28:09 +0000
committertnn <tnn@pkgsrc.org>2011-01-17 21:28:09 +0000
commit6096744ad49a443aadcdbe4b96d9a3be970653e0 (patch)
treeee0f33a2a3507fa2b8dafaab3cfaadc31e6827bb /x11/mrxvt/patches
parentca4441c55dca2cb7c2b37a4486930aeb170a6240 (diff)
downloadpkgsrc-6096744ad49a443aadcdbe4b96d9a3be970653e0.tar.gz
Don't error out (skipping utmp logging) when using Unix98 ptys.
Bump PKGREVISION.
Diffstat (limited to 'x11/mrxvt/patches')
-rw-r--r--x11/mrxvt/patches/patch-aa13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/mrxvt/patches/patch-aa b/x11/mrxvt/patches/patch-aa
new file mode 100644
index 00000000000..5fba04cccdf
--- /dev/null
+++ b/x11/mrxvt/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.4 2011/01/17 21:28:09 tnn Exp $
+
+--- src/logging.c.orig 2008-02-17 22:04:50.000000000 +0000
++++ src/logging.c
+@@ -105,7 +105,7 @@ rxvt_makeutent(rxvt_t *r, int page, cons
+ else if (sscanf(pty, "pts/%d", &i) == 1)
+ sprintf(ut_id, "vt%02x", (i & 0xff)); /* sysv naming */
+ #endif
+- else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3)) {
++ else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3) && STRNCMP(pty, "pts", 3)) {
+ rxvt_msg (DBG_ERROR, DBG_LOGGING, "can't parse tty name \"%s\"", pty);
+ return;
+ }