Bug 20062 - upgraded /bin/mail cannot be used as mailreader
Summary: upgraded /bin/mail cannot be used as mailreader
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mailx
Version: 5.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2000-10-30 20:46 UTC by Need Real Name
Modified: 2007-04-18 16:29 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-10-30 20:46:54 UTC

Attachments (Terms of Use)

Description Need Real Name 2000-10-30 20:46:50 UTC
/bin/mail which comes with the security upgraded mailx-8.1.1-16 for RH 5.2
seems to open the
/var/spool/mail/$USER readonly, and when it tries to delete or change the
flag on a message, 
it dumpes core.

Believe it or not, people still use /bin/mail as reader.

Comment 1 Derek Tattersall 2000-10-31 13:37:13 UTC
I straced mailx on a 5.2 system with all applicable updates.  mailx was at
8.1.1-16.  /var/spool/mail/xxx was indeed opened O_RDONLY; however it was closed
and reopened O_WRONLY |  O_TRUNC.  Upon supplying d1 to the prompt the 1st and
only message was deleted.

Can't reproduce this bug.

Note You need to log in before you can comment on or make changes to this bug.