|Summary:||upgraded /bin/mail cannot be used as mailreader|
|Product:||[Retired] Red Hat Linux||Reporter:||Need Real Name <florin>|
|Component:||mailx||Assignee:||Florian La Roche <laroche>|
|Status:||CLOSED NOTABUG||QA Contact:||David Lawrence <dkl>|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2000-10-30 20:46:54 UTC||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
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.