From: Chris Mason Date: Mon, 26 Feb 2007 15:46:55 +0000 (-0500) Subject: Btrfs: fixup dbfile perms X-Git-Tag: firefly_0821_release~15789^2~11^2~55^2~56^2~30^2~700 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c673024aba596e57c07196cb3400cdcc9d28f3aa;p=firefly-linux-kernel-4.4.55.git Btrfs: fixup dbfile perms Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index f4c6ff202ba9..c42dc72706bf 100644 --- a/fs/btrfs/disk-io.c +++ b/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;