mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
More relaxed file modes for now. (#1476)
This commit is contained in:
parent
d3718d00db
commit
b40d16310c
@ -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 New Issue
Block a user