mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
b432e5aaad
Bump PORTREVISION.
26 lines
813 B
C
26 lines
813 B
C
--- src/logging.c.orig 2010-01-15 17:27:05.000000000 +0100
|
|
+++ src/logging.c 2010-01-15 17:29:39.000000000 +0100
|
|
@@ -114,14 +114,22 @@
|
|
if (!STRNCMP(pty, "/dev/", 5))
|
|
pty += 5; /* skip /dev/ prefix */
|
|
|
|
+#ifdef PTYS_ARE_OPENPTY
|
|
+ if (!STRNCMP(pty, "pts", 3) || !STRNCMP(pty, "tty", 3)) {
|
|
+#else
|
|
if (!STRNCMP(pty, "pty", 3) || !STRNCMP(pty, "tty", 3)) {
|
|
+#endif
|
|
STRNCPY(ut_id, (pty + 3), sizeof(ut_id));
|
|
}
|
|
#ifdef HAVE_UTMP_PID
|
|
else if (sscanf(pty, "pts/%d", &i) == 1)
|
|
sprintf(ut_id, "vt%02x", (i & 0xff)); /* sysv naming */
|
|
#endif
|
|
+#ifdef PTYS_ARE_OPENPTY
|
|
+ else if (!STRNCMP(pty, "pts", 3) || !STRNCMP(pty, "tty", 3)) {
|
|
+#else
|
|
else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3)) {
|
|
+#endif
|
|
rxvt_print_error("can't parse tty name \"%s\"", pty);
|
|
return;
|
|
}
|