Use worker for replace feature

This fixes https://github.com/topjohnwu/Magisk/issues/9179.
This commit is contained in:
Wang Han 2025-07-16 22:03:28 +08:00 committed by John Wu
parent 0665549473
commit 9ca469898c

View File

@ -287,10 +287,10 @@ impl FsNode {
match node {
FsNode::Directory { .. } | FsNode::File { .. } => {
let src = Utf8CString::from(base_dir).join_path(name);
bind_mount(
mount_dummy(
"mount",
&src,
path.real(),
path.worker(),
matches!(node, FsNode::Directory { .. }),
);
}