Pārlūkot izejas kodu

Btrfs: fixup dbfile perms

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Chris Mason 18 gadi atpakaļ
vecāks
revīzija
c673024aba
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      fs/btrfs/disk-io.c

+ 1 - 1
fs/btrfs/disk-io.c

@@ -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;