diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2006-10-29 03:22:29 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2006-10-29 03:22:29 +0000 |
commit | b7f3c4ffa5214c4315930fe64c5ba82d2a4e02fd (patch) | |
tree | a9035e8c417c52711d95283e98db1a59e2661f5e /x11-toolkits/vte | |
parent | Make port fetchable and use USE_LDCONFIG. (diff) |
Teach vte to use FreeBSD's login/logout/logwtmp functions to handle
utmp and wtmp manipulation. This fixes a bug where gnome-pty-helper
would not relinquish ttys after a user logged out of GNOME.
Approved by: portmgr (implicit)
Notes
Notes:
svn path=/head/; revision=175547
Diffstat (limited to 'x11-toolkits/vte')
-rw-r--r-- | x11-toolkits/vte/Makefile | 2 | ||||
-rw-r--r-- | x11-toolkits/vte/files/patch-gnome-pty-helper_gnome-utmp.c | 40 |
2 files changed, 41 insertions, 1 deletions
diff --git a/x11-toolkits/vte/Makefile b/x11-toolkits/vte/Makefile index 68b2629a6eb8..0f44a1cf3906 100644 --- a/x11-toolkits/vte/Makefile +++ b/x11-toolkits/vte/Makefile @@ -8,7 +8,7 @@ PORTNAME= vte PORTVERSION= 0.14.1 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= x11-toolkits gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/x11-toolkits/vte/files/patch-gnome-pty-helper_gnome-utmp.c b/x11-toolkits/vte/files/patch-gnome-pty-helper_gnome-utmp.c new file mode 100644 index 000000000000..bc0877bf5f3a --- /dev/null +++ b/x11-toolkits/vte/files/patch-gnome-pty-helper_gnome-utmp.c @@ -0,0 +1,40 @@ +--- gnome-pty-helper/gnome-utmp.c.orig Sat Oct 28 23:15:53 2006 ++++ gnome-pty-helper/gnome-utmp.c Sat Oct 28 23:15:40 2006 +@@ -258,10 +258,18 @@ write_logout_record (char *login_name, v + #endif + + if (utmp) ++#if defined(__FreeBSD__) ++ logout (put.ut_line); ++#else + update_utmp (&put); ++#endif + + if (wtmp) ++#if defined(__FreeBSD__) ++ logwtmp (put.ut_line, "", ""); ++#else + update_wtmp (WTMP_OUTPUT_FILENAME, &put); ++#endif + + free (ut); + } +@@ -347,10 +355,18 @@ write_login_record (char *login_name, ch + # endif + #endif + if (utmp) ++#if defined(__FreeBSD__) ++ login (ut); ++#else + update_utmp (ut); ++#endif + + if (wtmp) ++#if defined(__FreeBSD__) ++ logwtmp (ut->ut_line, ut->ut_name, ut->ut_host); ++#else + update_wtmp (WTMP_OUTPUT_FILENAME, ut); ++#endif + + if (lastlog) + update_lastlog(login_name, ut); |