summaryrefslogtreecommitdiff
path: root/super-recover.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-09-01 19:38:23 +0200
committerDavid Sterba <dsterba@suse.com>2016-09-05 10:05:35 +0200
commitdf96f8244d482401035464e4d3f8197b7b65912b (patch)
treece05a1bb30942d0e0746ba38c0c8f4fad43f2f4c /super-recover.c
parent51d41fac76b6ef6c0b363000fc87a272cf2c0a8d (diff)
btrfs-progs: drop permission arg from non-creating open
The permissions do not make sense without O_CREATE mode. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'super-recover.c')
-rw-r--r--super-recover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super-recover.c b/super-recover.c
index 1dc3fc7..635e804 100644
--- a/super-recover.c
+++ b/super-recover.c
@@ -138,7 +138,7 @@ read_dev_supers(char *filename, struct btrfs_recover_superblock *recover)
struct btrfs_super_block *sb = (struct btrfs_super_block *)buf;
- fd = open(filename, O_RDONLY, 0666);
+ fd = open(filename, O_RDONLY);
if (fd < 0)
return -errno;