Skip to content

Commit

Permalink
fixup! pkg/fatfs/fatfs_vfs: fix flag translation in _open
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-hm committed Jun 2, 2020
1 parent cd00c03 commit 1715c2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/fatfs/fatfs_vfs/fatfs_vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ static int _open(vfs_file_t *filp, const char *name, int flags, mode_t mode,
else if ((flags & O_TRUNC) == O_TRUNC) {
fatfs_flags |= FA_CREATE_ALWAYS;
}
else {
fatfs_flags |= FA_OPEN_ALWAYS;
}
}
else {
fatfs_flags |= FA_OPEN_EXISTING;
Expand Down

0 comments on commit 1715c2e

Please # to comment.