group ID bug in "msg" mailer
Cpt Brian Boyter
boyter at westpt.UUCP
Thu Apr 24 13:34:31 AEST 1986
I recently installed "msg" on an AT&T 3B2 and uncovered the following
problem... I don't know if everyone has this problem... when you
quit "msg" and are deleting all the files in /usr/mail/user, "msg"
deletes the /usr/mail/user's file, then creates an empty file in its
place.... this new file has a group ID the same as the user but the
group ID should be "mail" or else the mailer cannot append incoming
mail...
The solution is to modify leavembox.c:
Change: chown(infile, userid, getgid());
to: chown(infile, userid, getegid());
Then in the Makefile where msg is installed:
Change from: chmod 4755 ${DEST}/msg
to: chmod 6755 ${DEST}/msg
add: chgrp mail ${DEST}/msg
Hope this helps...
Your old buddy,
Brian Boyter
philabs!westpt!boyter
More information about the Comp.sources.bugs
mailing list