Subject: Accessing your MS-DOS parition from NetBSD
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: None <Mark_Weaver@brown.edu>
List: current-users
Date: 08/23/1994 15:22:01
Julian H Stacey <Julian.H.Stacey@regent.e-technik.tu-muenchen.de> writes:
> Patch For: X11R6-pl3/xc/programs/xterm
> Why: To get `+ut' and `XTerm*utmpInhibit' to work,
> Without it xterm tries to create an entry in /etc/utmp.
> Tested with: FreeBSD 1.1.5-Current.
> Also for: NetBSD-current 94 08 12 sources,
>
> [...]
>
> *** old/X11R6.pl3.xc/programs/xterm/main.c Mon Aug 22 10:52:35 1994
> --- new/X11R6.pl3.xc/programs/xterm/main.c Mon Aug 22 13:39:57 1994
> ***************
> *** 263,268 ****
> --- 263,273 ----
> #define USE_GET_PSEUDOTTY
> #endif
>
> + #if BSD_NET2 || __FreeBSD__ || __NetBSD__
> + /* For FreeBSD 1.1.5(RELEASE) & NetBSD-current@94.08.12: /var/run/utmp */
> + #define UTMP_FILENAME _PATH_UTMP
> + #endif
> +
> #ifndef UTMP_FILENAME
> #ifdef UTMP_FILE
> #define UTMP_FILENAME UTMP_FILE
> Cut ========}
A more general fix for this is in XFree86 3.0A. In fact, I believe it was
in the first patches we sent the X Consortium, but they weren't able to
incorporate all of our patches before release.
The #ifndef UTMP_FILENAME section below what you inserted was extended:
#ifndef UTMP_FILENAME
#ifdef UTMP_FILE
#define UTMP_FILENAME UTMP_FILE
#else
#if defined(_PATH_UTMP)
#define UTMP_FILENAME _PATH_UTMP
#else
#define UTMP_FILENAME "/etc/utmp"
#endif
#endif
#endif
This has the advantage of not being BSD specific. There was a
section below that regarding the wtmp which was similarly extended.
Mark
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu | Brown University
PGP Key: finger mhw@cs.brown.edu | Dept of Computer Science
------------------------------------------------------------------------------