Subject: bin/241: bug in /usr/bin/mail
To: None <gnats-admin>
From: Steven Reiz <sreiz@aie.nl>
List: netbsd-bugs
Date: 05/02/1994 08:35:10
>Number: 241
>Category: bin
>Synopsis: using mail to delete a message may trash the box
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 2 08:35:09 1994
>Originator: Steven Reiz
>Organization:
AI Engineering, Amsterdam
>Release: NetBSD-current of May, 1
>Environment:
486 running NetBSD-current, includefiles, libraries and
mail binary up to date, as well as the kernel.
System: NetBSD aie8.aie.nl 0.9a AIE_ALL#0 i386
>Description:
It seems that the routines which write out a mailbox to disk
are broken, when 1 message out of a list of messages is deleted
(using /usr/bin/mail), the mailbox that is written back is garbled.
>How-To-Repeat:
With empty /var/mail/sreiz:
$ foreach i ( 1 2 3 4 )
foreach? echo "hallo, body $i" | mail -s "subj $i" sreiz
foreach? end
$ cp /var/mail/sreiz ~/tmp/mbox
$ mail
& d 3
& q
$ diff -w -u ~/tmp/mbox /var/mail/sreiz
It shows that instead of deleting the third message, the mailbox is garbled.
In my case, grep -i subject /var/mail/sreiz gives:
Subject: subj 1
Subject: subj 2
Subject: subj 4
Subject: subj 4
so it seems the fourth message was copied over the third.
>Fix:
unknown. Bug has probably been in NetBSD for a while since a message
of Apr, 12 (?) in the netbsd mailing list ``hints'' at it.
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------