]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Correct file modes on updated /etc/skeykeys.
authorDavid Nugent <davidn@FreeBSD.org>
Mon, 23 Dec 1996 02:27:29 +0000 (02:27 +0000)
committerDavid Nugent <davidn@FreeBSD.org>
Mon, 23 Dec 1996 02:27:29 +0000 (02:27 +0000)
pw/pw_user.c

index 81d4d9f700c31ec2e736e71524f1bf3b6c16a9f0..0b2f763eaa47e6e02a3cdf7b8ee77198100dda18 100644 (file)
@@ -23,7 +23,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- *     $Id: pw_user.c,v 1.7 1996/12/20 10:45:39 davidn Exp $
+ *     $Id: pw_user.c,v 1.8 1996/12/21 15:35:43 davidn Exp $
  */
 
 #include <unistd.h>
@@ -1003,7 +1003,7 @@ rmskey(char const * name)
        FILE   *infp = fopen(etcskey, "r");
 
        if (infp != NULL) {
-               int     fd = open(newskey, O_RDWR|O_CREAT|O_TRUNC, 0644);
+               int     fd = open(newskey, O_RDWR|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR);
 
                if (fd != -1) {
                        FILE * outfp = fdopen(fd, "w");