mirror of
https://github.com/nushell/nushell
synced 2025-01-13 05:38:57 +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
|
let has_exec = path
|
||||||
.metadata()
|
.metadata()
|
||||||
.map(|m| {
|
.map(|m| {
|
||||||
let mode = umask::Mode::from(m.permissions().mode());
|
umask::Mode::from(m.permissions().mode()).has(umask::USER_READ)
|
||||||
mode.has(umask::ALL_EXEC)
|
|
||||||
})
|
})
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
ShellError::labeled_error(
|
ShellError::labeled_error(
|
||||||
|
|
Loading…
Reference in a new issue