mirror of
https://github.com/nushell/nushell
synced 2025-01-12 21:29:07 +00:00
More relaxed file modes for now. (#1476)
This commit is contained in:
parent
d3718d00db
commit
b40d16310c
1 changed files with 1 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue