More relaxed file modes for now. (#1476)

This commit is contained in:
Andrés N. Robalino 2020-03-10 19:19:15 -05:00 committed by GitHub
parent d3718d00db
commit b40d16310c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(