freebsd-ports/x11/rxvt/files/patch-logging.c
Ed Schouten 810dc2911d 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
2009-03-23 21:08:37 +00:00

12 lines
320 B
C

--- 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 */