Skip to content

Commit dccfb42

Browse files
committed
fix(fs,unix): libc::mode_t may be not u32
1 parent 7edc08e commit dccfb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compio-fs/src/file.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl File {
120120
let fd = self.try_as_raw_fd()? as _;
121121
Runtime::current()
122122
.spawn_blocking(move || {
123-
syscall!(libc::fchmod(fd, perm.mode()))?;
123+
syscall!(libc::fchmod(fd, perm.mode() as libc::mode_t))?;
124124
Ok(())
125125
})
126126
.await

0 commit comments

Comments
 (0)