summaryrefslogtreecommitdiffstats
path: root/x11/rxvt-devel/files/utmp_patch-src::logging.c
blob: 20f9e436a24a75ce049c115ac127d1b159b7171b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- src/logging.c
+++ src/logging.c
@@ -82,7 +82,8 @@
     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/", 4)) {
 	rxvt_print_error("can't parse tty name \"%s\"", pty);
 	return;
     }
OpenPOWER on IntegriCloud