diff options
Diffstat (limited to 'x11/rxvt-devel/files/utmpx_patch-src::logging.c')
-rw-r--r-- | x11/rxvt-devel/files/utmpx_patch-src::logging.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/x11/rxvt-devel/files/utmpx_patch-src::logging.c b/x11/rxvt-devel/files/utmpx_patch-src::logging.c deleted file mode 100644 index 80f1a96def9..00000000000 --- a/x11/rxvt-devel/files/utmpx_patch-src::logging.c +++ /dev/null @@ -1,50 +0,0 @@ ---- 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; - } -@@ -137,7 +138,9 @@ - STRNCPY(utx->ut_user, (pwent && pwent->pw_name) ? pwent->pw_name : "?", - sizeof(utx->ut_user)); - STRNCPY(utx->ut_id, ut_id, sizeof(utx->ut_id)); -+#if 0 - utx->ut_session = getsid(0); -+#endif - utx->ut_tv.tv_sec = time(NULL); - utx->ut_tv.tv_usec = 0; - utx->ut_pid = r->h->cmd_pid; -@@ -202,7 +205,7 @@ - rxvt_update_wtmp(RXVT_WTMP_FILE, ut); - # endif - # endif --# ifdef HAVE_STRUCT_UTMPX -+# if 0 - updwtmpx(RXVT_WTMPX_FILE, utx); - # endif - } -@@ -254,7 +257,9 @@ - if ((tmputx = getutxid(utx))) /* position to entry in utmp file */ - utx = tmputx; - utx->ut_type = DEAD_PROCESS; -+#if 0 - utx->ut_session = getsid(0); -+#endif - utx->ut_tv.tv_sec = time(NULL); - utx->ut_tv.tv_usec = 0; - #endif -@@ -274,7 +279,7 @@ - rxvt_update_wtmp(RXVT_WTMP_FILE, ut); - # endif - # endif --# ifdef HAVE_STRUCT_UTMPX -+# if 0 - updwtmpx(RXVT_WTMPX_FILE, utx); - # endif - } |