Skip to content

Commit

Permalink
added a .into() for conversion on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Heath <jason.heath@progress.com>
  • Loading branch information
Jason Heath committed Sep 20, 2024
1 parent 30aa1c0 commit 926e3c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/core/src/util/posix_perm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn chmod(path: &str, mode: u32) -> Result<c_int> {
/// Sets the umask of the running process to 0022 after its called
pub fn set_umask_0022() -> Result<u32> { umask(0o22 as mode_t) }

fn umask(mode: mode_t) -> Result<u32> { unsafe { Ok(libc::umask(mode)) } }
fn umask(mode: mode_t) -> Result<u32> { unsafe { Ok(libc::umask(mode).into()) } }

#[cfg(test)]
mod tests {
Expand Down

0 comments on commit 926e3c9

Please sign in to comment.