Subject: bin/105: usr.bin/mail does not obey the spool file locking protocol
To: None <gnats-admin>
From: None <glass@sun-lamp.cs.berkeley.edu>
List: netbsd-bugs
Date: 01/28/1994 16:50:24
>Number: 105
>Category: bin
>Synopsis: usr.bin/mail does not obey the spool file locking protocol
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: gnats-admin (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 28 16:50:13 1994
>Originator: Adam Glass (noticed by Theo Deraadt)
>Organization:
Adam Glass |E-mail home: glass@sun-lamp.cs.berkeley.edu
|Physical : Seattle
"reality is for dead birds"
>Release: NetBSD-current
>Environment:
System: NetBSD sun-lamp.cs.berkeley.edu 0.9a SUN_LAMP_AHBBT_NODDB#24 i386
>Description:
usr.bin/mail and libexec/mail.local must obey the same protocol
in order to avoid corruption/data loss of the users mail
spool file.
The problem is that usr.bin/mail does not obey the locking
protocol. It does use flock() once, but doesn't check
for failure.
>How-To-Repeat:
do simultaneous delivery via mail.local, and writeback via mail.
>Fix:
fix usr.bin/mail to obey mail.local locking protocol. make
sure mh is configured similarly by default.
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------