Skip to content

Commit bc856e9

Browse files
5ec1cffbackslashxx
authored andcommitted
ksud: fix stat
1 parent 7baaad7 commit bc856e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

userspace/ksud/src/magic_mount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ fn do_magic_mount<P: AsRef<Path>, WP: AsRef<Path>>(
283283
Symlink => true,
284284
Whiteout => real_path.exists(),
285285
_ => {
286-
if let Ok(metadata) = real_path.metadata() {
286+
if let Ok(metadata) = real_path.symlink_metadata() {
287287
let file_type = NodeFileType::from_file_type(metadata.file_type())
288288
.unwrap_or(Whiteout);
289289
file_type != node.file_type || file_type == Symlink

0 commit comments

Comments
 (0)