Skip to content

Commit 0e0bd1e

Browse files
committed
fix symlink
1 parent 02792c6 commit 0e0bd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/vm/src/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fn meta_to_stat(meta: &std::fs::Metadata, file_id: u64) -> std::io::Result<StatS
169169
m |= libc::S_IFREG;
170170
}
171171
if meta.is_symlink() {
172-
m |= 0o100000;
172+
m = (m & !(libc::S_IFMT)) | (crate::common::fileutils::windows::S_IFLNK);
173173
}
174174
if meta.permissions().readonly() {
175175
m |= 0o444;

0 commit comments

Comments
 (0)