Bug 16119

Summary: ctm_rmail does not honor umask
Product: Base System Reporter: blank <blank>
Component: binAssignee: iedowse
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description blank 2000-01-14 08:40:00 UTC
When you feed a CTM delta into ctm_rmail the file that it produces has the
permission 0600 no matter what your umask is set to.  While this is of little
concern for most users it will definatively get you into trouble when you want
to make these deltas available over nfs or ftp (like I do on ctm.freebsd.org).

Important note: This problem report applies to 4.0-CURRENT as well.

Fix: The following small fix explicitly changes the permission to what the
user expects while taking the current umask into account.  Nothing
fancy, but it works.

How-To-Repeat: 
Simply feed a CTM delta into ctm_rmail and look at the permission of the
produced file.
Comment 1 iedowse freebsd_committer freebsd_triage 2002-01-22 22:55:13 UTC
State Changed
From-To: open->suspended


Committed, thanks!
Comment 2 iedowse freebsd_committer freebsd_triage 2002-01-22 22:55:42 UTC
Responsible Changed
From-To: freebsd-bugs->iedowse

MFC reminder.
Comment 3 iedowse freebsd_committer freebsd_triage 2002-08-26 19:59:03 UTC
State Changed
From-To: suspended->closed


Now fixed in -STABLE too.