From 43b662bdd466131882d312802bb6e6c0d788950d Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 15 Apr 2022 21:05:43 +0000 Subject: ripple/fossil/mount: correctly serve executable files Change-Id: I1bc7c0db7a0feeb5cb809e9382bf51816ec082c1 --- ripple/fossil/src/bin/mount.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ripple/fossil/src/bin/mount.rs b/ripple/fossil/src/bin/mount.rs index 601b594..f37c7db 100644 --- a/ripple/fossil/src/bin/mount.rs +++ b/ripple/fossil/src/bin/mount.rs @@ -2,7 +2,7 @@ // SPDX-License-Identifier: OSL-3.0 use { - fossil::store, + fossil::{store, FileRef}, lazy_static::lazy_static, libc::{c_int, EINVAL, ENOENT, ENOSYS, EROFS}, log::debug, @@ -49,7 +49,10 @@ fn file_attr(ino: u64, node: &memtree::Node) -> fuser::FileAttr { }, // Permissions perm: match node { - memtree::Node::Directory(_) => 0o755, + memtree::Node::Directory(_) + | memtree::Node::File(FileRef { + executable: true, .. + }) => 0o755, _ => 0o644, }, // Number of hard links -- cgit 1.4.1