Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!obie.cis.pitt.edu!cmf From: cmf@obie.cis.pitt.edu (Carl M. Fongheiser) Newsgroups: comp.windows.x Subject: Re: X11R4 -- congratulations! Message-ID: <21405@unix.cis.pitt.edu> Date: 5 Jan 90 22:38:22 GMT References: <9001051925.AA15747@underprize.think.com> Sender: news@unix.cis.pitt.edu Organization: University of Pittsburgh, Computing and Information Services Lines: 68 In article <9001051925.AA15747@underprize.think.com> rlk@THINK.COM (Robert L. Krawitz) writes: >A few minor incompatibilities: specifying xterm*utmpInhibit: on or >xterm*titlebar: off causes xterm to fail to come up and to exit after a >few seconds with status 0. I haven't tried it with titlebar off, but here's a bug report I already sent off to xbugs about utmpInhibit. Carl Fongheiser cmf@unix.cis.pitt.edu X Window System Bug Report xbugs@expo.lcs.mit.edu VERSION: R4 CLIENT MACHINE and OPERATING SYSTEM: VAX 8800 running Ultrix 3.0 (although bug applies to most BSD-style machines) DISPLAY TYPE: Digital QVSS (on VAXstation 3100) WINDOW MANAGER: not relevant (we're using twm and mwm though) AREA: xterm SYNOPSIS: Xterm will exit immediately (or core dump if run as root) if the "-ut" switch is set (or utmpInhibit is true) and it is running on any machine with BSD groups (HAS_BSD_GROUPS defined). DESCRIPTION: If xterm is run on such a machine with -ut set, xterm will call "initgroups(pw->name, pw->gid)", but pw was not initialized, so initgroups dies. REPEAT BY: Just run "xterm -ut" on such a machine. SAMPLE FIX: *** main.c.RELEASE Wed Dec 20 21:39:24 1989 --- main.c Fri Jan 5 11:36:12 1990 *************** *** 1781,1788 **** tslot = ttyslot(); added_utmp_entry = False; { ! if (!resource.utmpInhibit && ! (pw = getpwuid(screen->uid)) && (i = open(etc_utmp, O_WRONLY)) >= 0) { bzero((char *)&utmp, sizeof(struct utmp)); (void) strncpy(utmp.ut_line, --- 1781,1788 ---- tslot = ttyslot(); added_utmp_entry = False; { ! pw = getpwuid(screen->uid); ! if (!resource.utmpInhibit && pw && (i = open(etc_utmp, O_WRONLY)) >= 0) { bzero((char *)&utmp, sizeof(struct utmp)); (void) strncpy(utmp.ut_line,