From b40d16310c198f0d0df81bf3449c0d95aeefd53f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20N=2E=20Robalino?= Date: Tue, 10 Mar 2020 19:19:15 -0500 Subject: [PATCH] More relaxed file modes for now. (#1476) --- crates/nu-cli/src/shell/filesystem_shell.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/nu-cli/src/shell/filesystem_shell.rs b/crates/nu-cli/src/shell/filesystem_shell.rs index 91c3768fa0..bfe7cec538 100644 --- a/crates/nu-cli/src/shell/filesystem_shell.rs +++ b/crates/nu-cli/src/shell/filesystem_shell.rs @@ -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(