1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/games/jetpack/files/patch-ad
Steven Wallace 0ded0df8cb Add MANSUFFIX=6 to Imakefile.
Change LIBDIR to $(PREFIX)/lib/X11
Switch to real uid before XOpenDisplay call and back afterwards so
won't get can't opend display since u+s games.
1995-01-02 20:42:17 +00:00

39 lines
1.1 KiB
Plaintext

*** initx.c.orig Mon Apr 6 12:59:29 1992
--- initx.c Mon Jan 2 12:14:16 1995
***************
*** 44,57 ****
resulting fontname right into the code.
*/
! static char *fontname = "-*-fixed-medium-r-normal--*-70-*-*-c-*-*-*";
static char *bigfontname = "-*-courier-bold-r-normal--*-180-*-*-m-150-*-*";
/* init_X opens the display and sets up all the color stuff
*/
init_X()
{
! display = XOpenDisplay(NULL);
if (display == NULL) {
fprintf(stderr, "Jetpack : Cannot connect to X Server %s\n",
XDisplayName(NULL));
--- 44,62 ----
resulting fontname right into the code.
*/
! static char *fontname = "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-*-*-*";
static char *bigfontname = "-*-courier-bold-r-normal--*-180-*-*-m-150-*-*";
/* init_X opens the display and sets up all the color stuff
*/
init_X()
{
! int saved_euid;
!
! saved_euid = geteuid();
! seteuid(getuid());
! display = XOpenDisplay("");
! seteuid(saved_euid);
if (display == NULL) {
fprintf(stderr, "Jetpack : Cannot connect to X Server %s\n",
XDisplayName(NULL));