Skip to content

Commit

Permalink
native: Fix compilation on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Jul 19, 2024
1 parent 46e1a76 commit c1aa3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filer/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn update_permissions(path: &path::Path, permissions: &super::FilePermissions) -
use std::os::unix::fs::PermissionsExt;
let file_permissions = fs::metadata(path).into_diagnostic()?.permissions();
let new_mode = file_permissions.mode() | permissions.unix();
let new_permissions = Permissions::from_mode(new_mode);
let new_permissions = fs::Permissions::from_mode(new_mode);
fs::set_permissions(path, new_permissions).into_diagnostic()
}

Expand Down

0 comments on commit c1aa3f3

Please sign in to comment.