Skip to content

Commit

Permalink
Mask mode by 0o7777 because of incompatible change of Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
mizzy committed Nov 27, 2017
1 parent a8f0ed4 commit 85486be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/provider/file/inline/posix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ impl Posix {

impl InlineProvider for Posix {
fn mode(&self, name: &str) -> Result<Output, Error> {
let res = try!(fs::metadata(name).map(|m| Output::I32(m.permissions().mode() as i32)));
let res = try!(fs::metadata(name)
.map(|m| Output::I32((m.permissions().mode() & 0o7777) as i32)));
Ok(res)
}

Expand Down

0 comments on commit 85486be

Please sign in to comment.