[EMAIL PROTECTED] (Peter Seebach) writes:
> On BSD/OS, at least, inc.c needs all "setgid" changed to "setegid" to work
> with MAILGROUP defined, because once you setgid to the user's gid, you aren't
> allowed to change back, because setgid changes real, effective, and "saved"
> gid. You can only setgid to a value which is still stored in one of those.
> With it changed to "setegid", inc creates files with my group id in my Mail
> directory, but has group mail privs to /var/mail. I am pretty sure this is
> correct almost everywhere, although it wouldn't surprise me if just using
> setgid worked on some systems.
Thanks for the report, Peter. I'll take a look at it when I get a chance,
if no one beats me to it.
> I can submit a detailed patch, but it's pretty much
>:.,$s/setgid/setegid/g
> in inc.c from the line after the comments describing the "setgid" logic.
No. setegid() is not in (the original version of) POSIX.1, and some older
systems don't have such a call, so we'll need to add autoconf support and
only substitute setegid() for setgid() if it's available.
-----------------------------------------------------------------------
Dan Harkless | To prevent SPAM contamination, please
[EMAIL PROTECTED] | do not post this private email address
SpeedGate Communications, Inc. | to the USENET or WWW. Thank you.