summaryrefslogtreecommitdiff
path: root/x11/rxvt/files/patch-logging.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-03-23 21:08:37 +0000
committerEd Schouten <ed@FreeBSD.org>2009-03-23 21:08:37 +0000
commit810dc2911d13d80cf3eb549e9bc41cfda987ce4c (patch)
tree7a6938850398aca7b146fcaf81ac2e309991aba5 /x11/rxvt/files/patch-logging.c
parent2009-03-22 mbone/nte: tcl8.0 support is going to be dropped (diff)
Multiple fixes to rxvt:
- Fix compilation on -CURRENT by letting it use posix_openpt() to allocate PTYs. - Fix compilation when enabling WITH_GREEK. PR: ports/132928 Approved by: port maintainer
Notes
Notes: svn path=/head/; revision=230800
Diffstat (limited to '')
-rw-r--r--x11/rxvt/files/patch-logging.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11/rxvt/files/patch-logging.c b/x11/rxvt/files/patch-logging.c
new file mode 100644
index 000000000000..63bc9440d194
--- /dev/null
+++ b/x11/rxvt/files/patch-logging.c
@@ -0,0 +1,12 @@
+--- src/logging.c
++++ src/logging.c
+@@ -131,6 +131,9 @@
+ STRNCPY(ut_id, (pty + 3), sizeof(ut_id));
+ else
+ #ifndef USE_SYSV_UTMP
++ if (!strncmp(pty, "pts/", 4))
++ STRNCPY(ut_id, (pty + 4), sizeof(ut_id));
++ else
+ {
+ print_error("can't parse tty name \"%s\"", pty);
+ ut_id[0] = '\0'; /* entry not made */