Skip to content

Commit

Permalink
More relaxed file modes for now. (nushell#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasio committed Mar 11, 2020
1 parent d3718d0 commit b40d163
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/nu-cli/src/shell/filesystem_shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ impl Shell for FilesystemShell {
let has_exec = path
.metadata()
.map(|m| {
let mode = umask::Mode::from(m.permissions().mode());
mode.has(umask::ALL_EXEC)
umask::Mode::from(m.permissions().mode()).has(umask::USER_READ)
})
.map_err(|e| {
ShellError::labeled_error(
Expand Down

0 comments on commit b40d163

Please sign in to comment.