Skip to content

Commit

Permalink
fix sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Userzxcvbvnm authored and theduke committed Dec 13, 2023
1 parent 344c9e1 commit 7b9c578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wasix/src/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ impl WasiFs {
}
_ => {
let fd = self.get_fd(fd)?;
if fd.rights.contains(Rights::FD_DATASYNC) {
if !fd.rights.contains(Rights::FD_DATASYNC) {
return Err(Errno::Access);
}

Expand Down

0 comments on commit 7b9c578

Please sign in to comment.