mirror of
https://github.com/nushell/nushell.git
synced 2024-11-28 19:33: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
|
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 New Issue
Block a user