We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c9d27 commit 3535a5aCopy full SHA for 3535a5a
compio-fs/src/file.rs
@@ -95,9 +95,10 @@ impl File {
95
/// Changes the permissions on the underlying file.
96
#[cfg(unix)]
97
pub async fn set_permissions(&self, perm: Permissions) -> io::Result<()> {
98
- use compio_driver::syscall;
99
use std::os::unix::fs::PermissionsExt;
100
+ use compio_driver::syscall;
101
+
102
let file = self.inner.try_clone()?;
103
compio_runtime::spawn_blocking(move || {
104
syscall!(libc::fchmod(file.as_raw_fd(), perm.mode() as libc::mode_t))?;
0 commit comments