Bug 20062

Summary: upgraded /bin/mail cannot be used as mailreader
Product: [Retired] Red Hat Linux Reporter: Need Real Name <florin>
Component: mailxAssignee: Florian La Roche <laroche>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-30 20:46:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.