summaryrefslogtreecommitdiff
path: root/cmds-inspect-dump-super.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 /cmds-inspect-dump-super.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 'cmds-inspect-dump-super.c')
-rw-r--r--cmds-inspect-dump-super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-inspect-dump-super.c b/cmds-inspect-dump-super.c
index 3e09ee8c..38e99ec1 100644
--- a/cmds-inspect-dump-super.c
+++ b/cmds-inspect-dump-super.c
@@ -511,7 +511,7 @@ int cmd_inspect_dump_super(int argc, char **argv)
for (i = optind; i < argc; i++) {
filename = argv[i];
- fd = open(filename, O_RDONLY, 0666);
+ fd = open(filename, O_RDONLY);
if (fd < 0) {
error("cannot open %s: %s", filename, strerror(errno));
ret = 1;