Files
Nim/lib
Alexander Kernozhitsky 37965bd591 Handle arbitrarily long symlink target in expandSymlinks() (#23650)
For now, `expandSymlinks()` can handle only symlinks with lengths up to
1024.

We can improve this logic and retry inside a loop with increasing
lengths until we succeed.

The same approach is used in
[Go](377646589d/src/os/file_unix.go (L446)),
[Rust](785eb65377/library/std/src/sys/pal/unix/fs.rs (L1700))
and [Nim's
`getCurrentDir()`](https://github.com/nim-lang/Nim/blob/devel/lib/std/private/ospaths2.nim#L877),
so maybe it's a good idea to use the same logic in `expandSymlinks()`
also.

(cherry picked from commit 3bda5fc840)
2024-09-13 10:22:20 +02:00
..
2017-02-20 17:24:19 +02:00
2024-08-31 12:47:25 +02:00
2024-08-19 09:25:03 +02:00
2013-03-16 23:53:07 +01:00
2021-06-03 14:00:53 +02:00
2021-08-29 09:18:54 +02:00
2024-07-09 20:09:41 +02:00