Skip to content

Commit 7e21b41

Browse files
committed
Add in the comment that solaris lacks also the 'linkat'
1 parent 1d24374 commit 7e21b41

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/unix

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ pub fn link(original: &Path, link: &Path) -> io::Result<()> {
14241424
run_path_with_cstr(link, |link| {
14251425
cfg_if::cfg_if! {
14261426
if #[cfg(any(target_os = "vxworks", target_os = "redox", target_os = "android", target_os = "espidf", target_os = "horizon", target_os = "solaris"))] {
1427-
// VxWorks, Redox and ESP-IDF lack `linkat`, so use `link` instead. POSIX leaves
1427+
// VxWorks, Redox, ESP-IDF and Solaris lack `linkat`, so use `link` instead. POSIX leaves
14281428
// it implementation-defined whether `link` follows symlinks, so rely on the
14291429
// `symlink_hard_link` test in library/std/src/fs/tests.rs to check the behavior.
14301430
// Android has `linkat` on newer versions, but we happen to know `link`

0 commit comments

Comments
 (0)