From nobody@FreeBSD.ORG Thu May 20 00:15:47 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id B225C14FFF; Thu, 20 May 1999 00:15:47 -0700 (PDT)
Message-Id: <19990520071547.B225C14FFF@hub.freebsd.org>
Date: Thu, 20 May 1999 00:15:47 -0700 (PDT)
From: mahe@twam.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Partial saves in vipw have mode rw-rw-rw-
X-Send-Pr-Version: www-1.0

>Number:         11797
>Category:       misc
>Synopsis:       Partial saves in vipw have mode rw-rw-rw-
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 20 00:20:00 PDT 1999
>Closed-Date:    Mon Jun 28 05:41:41 PDT 1999
>Last-Modified:  Mon Jun 28 05:42:12 PDT 1999
>Originator:     Loic Mahe'
>Release:        3.1-RELEASE
>Organization:
TWAM Informatique
>Environment:
FreeBSD twamx.twam 3.1-RELEASE FreeBSD 3.1-RELEASE #2: Mon May 17 08:50:55 CEST 1999
root@twamx.twam:/usr/src/sys/compile/NOYAU  i386

>Description:
When I use vipw and I make a "save as", for example :
$> vipw
$> :w vipw.tmp
$> :q
Then the new file (vipw.tmp) has the following rights : rw-rw-rw-.
This occurs with umask 022 and 077. It occurs with a full "save as" (see
the previous example) or a partial "save as" : :1,5w vipw.tmp
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: pb 
State-Changed-When: Sat Jun 26 05:15:53 PDT 1999 
State-Changed-Why:  
Testing a fix under -current. 
The problm was that the umask was forced to 0 by vipw, even 
during the edit phase. Now it's set to 077 during that phase. 


Responsible-Changed-From-To: freebsd-bugs->pb 
Responsible-Changed-By: pb 
Responsible-Changed-When: Sat Jun 26 05:15:53 PDT 1999 
Responsible-Changed-Why:  
I'll merge this to -stable and close the PR. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: pb 
State-Changed-When: Mon Jun 28 05:41:41 PDT 1999 
State-Changed-Why:  
Fixed in -stable. 
>Unformatted:
