From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8af5b8c1751bd8ea,start X-Google-Attributes: gidfee84,public X-Google-Thread: 10e366,8af5b8c1751bd8ea,start X-Google-Attributes: gid10e366,public X-Google-ArrivalTime: 1994-07-14 14:08:11 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!EU.net!sunic!news.chalmers.se!cd.chalmers.se!tl From: tl@cd.chalmers.se (Torbj|rn Lindgren) Newsgroups: comp.unix.osf.osf1,comp.mail.elm Subject: Re: Patch for Elm 2.4.23 under OSF/1 (DEC Alpha) Date: 14 Jul 1994 20:48:26 GMT Organization: Chalmers Computer Society Message-ID: <3048aq$cni@nyheter.chalmers.se> References: <1994Jul14.153046.19720@ultb.isc.rit.edu> NNTP-Posting-Host: haddock.cd.chalmers.se Xref: bga.com comp.unix.osf.osf1:2507 comp.mail.elm:2622 In article <1994Jul14.153046.19720@ultb.isc.rit.edu>, Greg Pratt wrote: >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: Another possibility is to answer yes on the query about setgid mail (since the mail-file has the group this is probably correct, even if the permission of the mail-directory means that you don't have to answer yes) and answer *no* to the question about switching between real and effective group id (using setgid). When I answered this way it stopped making noise about 'Problem restoring permissions'. Since mail-files has the group mailthe question about setgid really should be answered with yes. The other question is a bit harder to check (the manpage doesn't tell whether setgid can switch back to a old group). >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). My elm is compiled with DEC's cc under OSF/1 2.0 without any patches to elm. >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.) [...] >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. Since the mail-files has the group 'mail' elm must be setgid mail to have a chance to change the group back to 'mail'.