Fix a typo in a comment.
This commit is contained in:
parent
91a9f83dd1
commit
23a5c21415
1 changed files with 1 additions and 1 deletions
|
@ -1068,7 +1068,7 @@ pub fn link(src: &Path, dst: &Path) -> io::Result<()> {
|
|||
let src = cstr(src)?;
|
||||
let dst = cstr(dst)?;
|
||||
// Use `linkat` with `AT_FDCWD` instead of `link` as `link` leaves it
|
||||
// implmentation-defined whether it follows symlinks. Pass 0 as the
|
||||
// implementation-defined whether it follows symlinks. Pass 0 as the
|
||||
// `linkat` flags argument so that we don't follow symlinks.
|
||||
cvt(unsafe { libc::linkat(libc::AT_FDCWD, src.as_ptr(), libc::AT_FDCWD, dst.as_ptr(), 0) })?;
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue