1 --- src/logging.c.orig 2014-12-09 13:47:18.000000000 -0800
2 +++ src/logging.c 2014-12-09 13:47:35.000000000 -0800
4 else if (sscanf(pty, "pts/%d", &i) == 1)
5 sprintf(ut_id, "vt%02x", (i & 0xff)); /* sysv naming */
7 - else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3)) {
8 + else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3) &&
9 + STRNCMP(pty, "pts/", 4)) {
10 xvt_print_error("can't parse tty name \"%s\"", pty);
14 STRNCPY(utx->ut_user, (pwent && pwent->pw_name) ? pwent->pw_name : "?",
15 sizeof(utx->ut_user));
16 STRNCPY(utx->ut_id, ut_id, sizeof(utx->ut_id));
18 utx->ut_session = getsid(0);
20 utx->ut_tv.tv_sec = time(NULL);
21 utx->ut_tv.tv_usec = 0;
22 utx->ut_pid = r->h->cmd_pid;
24 xvt_update_wtmp(XVT_WTMP_FILE, ut);
27 -# ifdef HAVE_STRUCT_UTMPX
29 updwtmpx(XVT_WTMPX_FILE, utx);
33 if ((tmputx = getutxid(utx))) /* position to entry in utmp file */
35 utx->ut_type = DEAD_PROCESS;
37 utx->ut_session = getsid(0);
39 utx->ut_tv.tv_sec = time(NULL);
40 utx->ut_tv.tv_usec = 0;
43 xvt_update_wtmp(XVT_WTMP_FILE, ut);
46 -# ifdef HAVE_STRUCT_UTMPX
48 updwtmpx(XVT_WTMPX_FILE, utx);