This commit is contained in:
Dan Gohman 2021-02-19 07:31:01 -08:00
parent 0060c91cfc
commit 1abcdfe449

View File

@ -558,12 +558,7 @@ pub fn link(original: &Path, link: &Path) -> io::Result<()> {
let (original, original_file) = open_parent(original)?;
let (link, link_file) = open_parent(link)?;
// Pass 0 as the flags argument, meaning don't follow symlinks.
original.link(
0,
osstr2str(original_file.as_ref())?,
&link,
osstr2str(link_file.as_ref())?,
)
original.link(0, osstr2str(original_file.as_ref())?, &link, osstr2str(link_file.as_ref())?)
}
pub fn stat(p: &Path) -> io::Result<FileAttr> {