From 4044977f505ea7c80fb4b99d44faca429d57b937 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Mon, 11 Jan 2021 17:05:09 -0800 Subject: [PATCH] just ignore nofollow on links for now --- crates/wasi-c2/src/dir.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs index 343d8ab6f1..bd5bc52643 100644 --- a/crates/wasi-c2/src/dir.rs +++ b/crates/wasi-c2/src/dir.rs @@ -407,15 +407,7 @@ impl WasiDir for cap_std::fs::Dir { .ok_or(Error::NotCapable)?; let src_path = Path::new(src_path); let target_path = Path::new(target_path); - if symlink_follow { - self.hard_link(src_path, target_dir, target_path)?; - } else { - todo!() - /* - use cap_fs_ext::DirExt; - self.hard_link_nofollow(src_path, target_dir, target_path)?; - */ - } + self.hard_link(src_path, target_dir, target_path)?; Ok(()) } fn set_times(