diff options
| author | Daniel Laügt <daniel.laugt@gmail.com> | 2022-11-29 23:23:14 +0100 |
|---|---|---|
| committer | Daniel Laügt <daniel.laugt@gmail.com> | 2022-11-29 23:23:14 +0100 |
| commit | 7e21b417d4d7e60ce61ebe0991f9b8a61df4bdb8 (patch) | |
| tree | dc871d0ce349df0d88e9809fa04953ca61febc8f | |
| parent | 1d24374521496aad0d60c490f8e793e6b8ed80e3 (diff) | |
| download | rust-7e21b417d4d7e60ce61ebe0991f9b8a61df4bdb8.tar.gz rust-7e21b417d4d7e60ce61ebe0991f9b8a61df4bdb8.zip | |
Add in the comment that solaris lacks also the 'linkat'
| -rw-r--r-- | library/std/src/sys/unix/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs index c9deb1fc6bd..0abf7c1be47 100644 --- a/library/std/src/sys/unix/fs.rs +++ b/library/std/src/sys/unix/fs.rs @@ -1424,7 +1424,7 @@ pub fn link(original: &Path, link: &Path) -> io::Result<()> { run_path_with_cstr(link, |link| { cfg_if::cfg_if! { if #[cfg(any(target_os = "vxworks", target_os = "redox", target_os = "android", target_os = "espidf", target_os = "horizon", target_os = "solaris"))] { - // VxWorks, Redox and ESP-IDF lack `linkat`, so use `link` instead. POSIX leaves + // VxWorks, Redox, ESP-IDF and Solaris lack `linkat`, so use `link` instead. POSIX leaves // it implementation-defined whether `link` follows symlinks, so rely on the // `symlink_hard_link` test in library/std/src/fs/tests.rs to check the behavior. // Android has `linkat` on newer versions, but we happen to know `link` |
