diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2005-09-28 14:18:36 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2005-09-28 14:18:36 +0000 |
commit | b1857a4f5a0db8c3e645b0560be39fbbc09e2e61 (patch) | |
tree | e3f6d93c64a351d4c1c30dcc24fdfcaa88040aed /x11/xterm | |
parent | 976a924a4a6337b3955b2c0181d54e2c4e2ec399 (diff) | |
download | ports-b1857a4f5a0db8c3e645b0560be39fbbc09e2e61.tar.gz ports-b1857a4f5a0db8c3e645b0560be39fbbc09e2e61.zip |
Notes
Diffstat (limited to 'x11/xterm')
-rw-r--r-- | x11/xterm/Makefile | 1 | ||||
-rw-r--r-- | x11/xterm/files/patch-main.c | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/x11/xterm/Makefile b/x11/xterm/Makefile index 737b87bb6875..6f1e0c2f29e9 100644 --- a/x11/xterm/Makefile +++ b/x11/xterm/Makefile @@ -7,6 +7,7 @@ PORTNAME= xterm PORTVERSION= 205 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= ftp://invisible-island.net/xterm/ \ http://voodoo.oberon.net/download/ diff --git a/x11/xterm/files/patch-main.c b/x11/xterm/files/patch-main.c new file mode 100644 index 000000000000..8a4a5eb24bc8 --- /dev/null +++ b/x11/xterm/files/patch-main.c @@ -0,0 +1,74 @@ + +$FreeBSD$ + +--- main.c.orig ++++ main.c +@@ -379,14 +379,6 @@ + #include <util.h> + #endif + +-#ifdef __FreeBSD__ +-#include <sys/types.h> +-#include <sys/ioctl.h> +-#include <termios.h> +-#include <libutil.h> +-#include <grp.h> +-#endif +- + #if !defined(UTMP_FILENAME) + #if defined(UTMP_FILE) + #define UTMP_FILENAME UTMP_FILE +@@ -472,7 +464,7 @@ + + static Bool added_utmp_entry = False; + +-#if defined(__OpenBSD__) || defined(__FreeBSD__) ++#if defined(__OpenBSD__) + static gid_t utmpGid = -1; + #endif + +@@ -1606,7 +1598,7 @@ + strcpy(ptydev, PTYDEV); + #endif + +-#if defined(__OpenBSD__) || defined(__FreeBSD__) ++#if defined(__OpenBSD__) + get_pty(NULL, NULL); + seteuid(getuid()); + setuid(getuid()); +@@ -1944,7 +1936,7 @@ + } + #endif + +-#if defined(__OpenBSD__) || defined(__FreeBSD__) ++#if defined(__OpenBSD__) + if (resource.utmpInhibit) { + /* Can totally revoke group privs */ + setegid(getgid()); +@@ -2354,7 +2346,7 @@ + { + int result = 1; + +-#if defined(__OpenBSD__) || defined(__FreeBSD__) ++#if defined(__OpenBSD__) + static int m_tty = -1; + static int m_pty = -1; + struct group *ttygrp; +@@ -4061,7 +4053,7 @@ + } + #endif /* USE_LASTLOG */ + +-#if defined(__OpenBSD__) || defined(__FreeBSD__) ++#if defined(__OpenBSD__) + /* Switch to real gid after writing utmp entry */ + utmpGid = getegid(); + if (getgid() != getegid()) { +@@ -4436,7 +4428,7 @@ + && (resource.ptyHandshake && added_utmp_entry) + #endif /* OPT_PTY_HANDSHAKE */ + ) { +-#if defined(__OpenBSD__) || defined(__FreeBSD__) ++#if defined(__OpenBSD__) + if (utmpGid != -1) { + /* Switch back to group utmp */ + setegid(utmpGid); |