diff options
Diffstat (limited to 'x11/rxvt/files/patch-src__logging.c')
-rw-r--r-- | x11/rxvt/files/patch-src__logging.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/x11/rxvt/files/patch-src__logging.c b/x11/rxvt/files/patch-src__logging.c new file mode 100644 index 000000000000..63bc9440d194 --- /dev/null +++ b/x11/rxvt/files/patch-src__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 */ |