summary refs log tree commit diff
path: root/ripple/fossil/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'ripple/fossil/src/bin')
-rw-r--r--ripple/fossil/src/bin/mount.rs7
1 files 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