Module Name:    src
Committed By:   joerg
Date:           Tue Apr 28 22:49:26 UTC 2009

Modified Files:
        src/usr.sbin/makefs: ffs.c

Log Message:
Create images with 0666 - umask, not 0777 - umask (e.g. without x bits).


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/usr.sbin/makefs/ffs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/makefs/ffs.c
diff -u src/usr.sbin/makefs/ffs.c:1.43 src/usr.sbin/makefs/ffs.c:1.44
--- src/usr.sbin/makefs/ffs.c:1.43	Thu Apr 16 18:54:16 2009
+++ src/usr.sbin/makefs/ffs.c	Tue Apr 28 22:49:26 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: ffs.c,v 1.43 2009/04/16 18:54:16 dyoung Exp $	*/
+/*	$NetBSD: ffs.c,v 1.44 2009/04/28 22:49:26 joerg Exp $	*/
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -71,7 +71,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: ffs.c,v 1.43 2009/04/16 18:54:16 dyoung Exp $");
+__RCSID("$NetBSD: ffs.c,v 1.44 2009/04/28 22:49:26 joerg Exp $");
 #endif	/* !__lint */
 
 #include <sys/param.h>
@@ -477,7 +477,7 @@
 	assert (fsopts != NULL);
 
 		/* create image */
-	if ((fsopts->fd = open(image, O_RDWR | O_CREAT | O_TRUNC, 0777))
+	if ((fsopts->fd = open(image, O_RDWR | O_CREAT | O_TRUNC, 0666))
 	    == -1) {
 		warn("Can't open `%s' for writing", image);
 		return (-1);

Reply via email to