You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/10/26 18:31:57 UTC

(opendal-yinyang) branch xuanwo/managed-sync-regressions updated: fix: read linux file mode through MetadataExt

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch xuanwo/managed-sync-regressions
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git


The following commit(s) were added to refs/heads/xuanwo/managed-sync-regressions by this push:
     new cdfc8c5  fix: read linux file mode through MetadataExt
cdfc8c5 is described below

commit cdfc8c59a1c355bde61be35b69a557673e5534f5
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Oct 27 02:31:50 2026 +0800

    fix: read linux file mode through MetadataExt
---
 tests/directory_sync.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/directory_sync.rs b/tests/directory_sync.rs
index d6bb41c..15b6305 100644
--- a/tests/directory_sync.rs
+++ b/tests/directory_sync.rs
@@ -62,7 +62,7 @@ fn local_tree(root: &Path) -> BTreeMap<String, TreeEntry> {
             tree.insert(
                 rel.to_owned(),
                 TreeEntry::File {
-                    executable: metadata.mode() & 0o111 != 0,
+                    executable: metadata.st_mode() & 0o111 != 0,
                     bytes: std::fs::read(path).expect("tree file bytes"),
                 },
             );