Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btrfs-progs: Fix compilation errors with btrfs-select-super.c introduced... #7

Merged
merged 1 commit into from
Dec 6, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions btrfs-select-super.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int main(int ac, char **av)
int num;
u64 bytenr = 0;
int commit = 0;
int use_lowest_bdev = 0;
int use_earliest_bdev = 0;
int fp;

while(1) {
Expand Down Expand Up @@ -93,7 +93,7 @@ int main(int ac, char **av)
return -EBUSY;
}

fp = open(av[optind], O_CREAT|O_RDRW, 0600);
fp = open(av[optind], O_CREAT|O_RDWR, 0600);
if (fp < 0) {
fprintf(stderr, "Could not open %s\n", av[optind]);
return 1;
Expand Down