Btrfs: fixup dbfile perms
authorChris Mason <chris.mason@oracle.com>
Mon, 26 Feb 2007 15:46:55 +0000 (10:46 -0500)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Mon, 26 Feb 2007 15:46:55 +0000 (10:46 -0500)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c

index f4c6ff202ba913a28c20f8d76a7a90b89259b75c..c42dc72706bf08d226893601c0d9206ac9f846e5 100644 (file)
@@ -113,7 +113,7 @@ struct ctree_root *open_ctree(char *filename, struct ctree_super_block *super)
        int fp;
        int ret;
 
-       fp = open(filename, O_CREAT | O_RDWR);
+       fp = open(filename, O_CREAT | O_RDWR, 0600);
        if (fp < 0) {
                free(root);
                return NULL;