We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hard_link
1 parent e708cbd commit 0060c91Copy full SHA for 0060c91
library/std/src/sys/wasi/fs.rs
@@ -557,8 +557,9 @@ pub fn symlink(original: &Path, link: &Path) -> io::Result<()> {
557
pub fn link(original: &Path, link: &Path) -> io::Result<()> {
558
let (original, original_file) = open_parent(original)?;
559
let (link, link_file) = open_parent(link)?;
560
+ // Pass 0 as the flags argument, meaning don't follow symlinks.
561
original.link(
- wasi::LOOKUPFLAGS_SYMLINK_FOLLOW,
562
+ 0,
563
osstr2str(original_file.as_ref())?,
564
&link,
565
osstr2str(link_file.as_ref())?,
0 commit comments