Path: utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!keith From: keith@EXPO.LCS.MIT.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: Patch #2 for X11R3 Message-ID: <8811292255.AA24589@EXPO.LCS.MIT.EDU> Date: 29 Nov 88 22:55:32 GMT References: <8811292245.AA00846@cleo.sw.mcc.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 20 > The comments at the head of patch #2 indicate > that the fixes to server/os/4.2bsd/osinit.c are because of > "rgb.dir corruption". Looking at the patch, however, seems > to show it to affect the version number (1.19 to 1.21) and > code that seems to deal with where to put debug and error log > messages (ADMPATH file opening). This is correct. The rgb.dir file was being corrupted by output written to stderr. dbm(3) opens the database files read/write, even when read-only access would suffice. If the error file open failed, it left file descriptor 2 unused, the next file opened happened to be rgb.dir; it got file descriptor 2 and all error output went to it. So, the "fix" was to make sure something viable was connected to file descriptor 2. Keith Packard MIT X Consortium (617) 253-1428 keith@EXPO.LCS.MIT.EDU