Bug 13005

Summary: make rc use mktemp for temporary motd file
Product: Base System Reporter: nbm <nbm>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.0-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description nbm 1999-08-06 21:20:00 UTC
rc currently uses the file /tmp/_motd as a temporary file, and despite
attempting to delete it, that operation may fail (chflags) and cause
arbitrary non-roots to effectively replace the motd at bootup.

How-To-Repeat: 
su - arb
cd /tmp
touch _motd
chflags
Comment 1 Neil Blakey-Milner 1999-08-06 21:26:22 UTC
On Fri 1999-08-06 (20:13), nbm@rucus.ru.ac.za wrote:
> rc currently uses the file /tmp/_motd as a temporary file, and despite
> attempting to delete it, that operation may fail (chflags) and cause
> arbitrary non-roots to effectively replace the motd at bootup.

Cancel that, I really should keep up to date and not sit on patches for
more than two days.
Comment 2 hoek freebsd_committer freebsd_triage 1999-08-07 00:49:49 UTC
State Changed
From-To: open->closed

Originator confirms he sat on his patches for too long and they have since 
become redundant.