Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Patch for Elm 2.4.23 under OSF/1 (DEC Alpha)
@ 1994-07-14 15:30 Greg Pratt
  1994-07-14 20:48 ` Torbj|rn Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Pratt @ 1994-07-14 15:30 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1994-07-21 13:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-14 15:30 Patch for Elm 2.4.23 under OSF/1 (DEC Alpha) Greg Pratt
1994-07-14 20:48 ` Torbj|rn Lindgren
1994-07-15 13:37   ` Phil Benchoff
1994-07-21 13:50     ` Phil Benchoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox