Why was mail_bsd(1) changed?

Mark Andrews mark at alias.uucp
Tue Feb 5 04:51:08 AEST 1991


In article <83600 at sgi.sgi.com> vjs at rhyolite.wpd.sgi.com (Vernon Schryver) writes:
	<Stuff deleted>

>In these days of high SGI-BSD compatibility, porting the 4.3BSD Mail
>from the tape or uunet should be trivial, should you want to change it
>back.
>
>
>Vernon Schryver,  vjs at sgi.com
>Disclaimer: I was not a disinterested observer of this change to Mail.

I agree you about the porting except for a few points. The SGI version of
BSD mail has a few differences from the "true" 4.3BSD mail. As it says in
the mail_bsd(1) man page, the following files are created"

	FILE			Reason
	----			------

     /usr/mail/user.lock      Lock for user's mailbox.
     /usr/mail/user.rolock    Read-only lock for user's mailbox.
                              Used to prevent file contention between multiple
                              Mail instances.

Under what circumstances are these files created by mail_bsd(1)?

I suspect that the `user.lock' file is only created by the mail program which
delivers the mail to a users mailbox. Does SGI's version of mail_bsd(1) care
about the existence of this file? I know from prior releases that if
/usr/mail/user.lock existed when that user logged in, their login session would
be locked until the user.lock file was removed (i.e.: the `/bin/mail -e' test
in /etc/cshrc). I seem to remember reading about something in the IRIX 3.3
or 3.3.1 release notes that SGI had fixed this problem, but I don't remember.
What should mail_bsd(1) do if it encounters a user.lock file?

The purpose of the user.rolock is probably exactly as it looks. When you enter
mail_bsd(1), the rolock file is created, thus making the users mail file
read-only. As long as /usr/mail/user.rolock exists, the file may not be
modified. If an attempt is made to modify the mail file (i.e.: concurrent mail
sessions), the program should warn the user that the file may not be modified
at this time.

There is also the point that mail_bsd(1) is setgid mail, while BSD mail was
not.

While I could get the BSD mail compiled okay on the SGI machines, I would be
worried about any important changes that I have overlooked during the port
that may be important to SGI's implementation of the mail program.

I appreciate the explanation. I guess I will have to get used to ra.

------------------------------------------------------------------------------
	Mark Andrews
	Systems Programmer,
	Alias Research,
	Toronto, Canada
Phone:	(416)-362-9181
Mail box: mark%alias at csri.utoronto.ca
-- 
------------------------------------------------------------------------------
	Mark Andrews
	Systems Programmer,
	Alias Research,



More information about the Comp.sys.sgi mailing list