From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10e366,8af5b8c1751bd8ea X-Google-Attributes: gid10e366,public X-Google-Thread: fee84,8af5b8c1751bd8ea X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-14 15:47:04 PST Newsgroups: comp.unix.osf.osf1,comp.mail.elm Path: bga.com!news.sprintlink.net!qns1.qns.com!constellation!convex!convex!cs.utexas.edu!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.kei.com!travelers.mail.cornell.edu!newstand.syr.edu!galileo.cc.rochester.edu!rochester!rit!isc-newsserver!burn.isc.rit.edu!glp5941 From: glp5941@burn.isc.rit.edu (Greg Pratt) Subject: Patch for Elm 2.4.23 under OSF/1 (DEC Alpha) Message-ID: <1994Jul14.153046.19720@ultb.isc.rit.edu> Sender: news@ultb.isc.rit.edu (USENET News System) Nntp-Posting-Host: burn.isc.rit.edu Organization: Rochester Institute of Technology, Rochester, NY [USA] Date: Thu, 14 Jul 1994 15:30:46 GMT Xref: bga.com comp.unix.osf.osf1:2510 comp.mail.elm:2623 I've no idea if a patch for Elm 2.4.23 under DEC's OSF/1 has been posted yet, but I'll post this for all interested parties nonetheless. Those of you who use Elm on an Alpha may notice that you sometimes get strange mailbox ownership errors when you exit from Elm. This appears to be caused by Elm not thinking that chown(2) works like its BSD cousins. When Elm tries to change the protections on the mailbox files, the chown() call will fail, and the error will chain back up until a visible error message is produced by the program. This does not affect Elm's functionality, but it is annoying. The patch is fairly simple. Chmod the file src/fileio.c to 600 (it's set to 400 by default, I believe), and change line 468 as follows: 468c468 < #ifdef BSD --- > #if (defined(BSD) || (defined(__osf__) && defined(__alpha))) The above patch presumes that you'll be using DEC's C compiler; I have not tested it with gcc. I'm also assuming this will work on versions of OSF/1 older than 2.0 (which is what I'm using). Note that I've compiled Elm to run non-setgid on my system. (I'm not even sure that in this case it makes a big difference.) The above patch causes the behavior of chown() to be viewed as the same as under a BSD system; that is, you must be root to change the owner of the file, or (more importantly) you must be a member of the group to which you are trying to change the file's group. If this is he way chown() on your system works, Elm does the chown (via elm_chown()) but ignores the return status. I'll send this off to the Elm development group. If they thin it's a sane patch, hopefully it will end up in the next patchlevel release of Elm 2.4. -- Gregory Pratt Rochester Institute of Technology Systems Programmer Assistant 103 Lomb Memorial Drive Information Systems & Computing Rochester, NY 14623-5608