On Fri Nov 22 16:27:05 2024 +0000, Gabriel Ivăncescu wrote:
Is that worth the complication in the code? We'll still need two syscalls, and the kernel will still need to traverse the same amount of symlinks to reach the dirnames.
realpath() is not a syscall: https://elixir.bootlin.com/glibc/glibc-2.40.9000/source/stdlib/canonicalize....
Besides, realpath() cannot handle bind mounts (e.g., due to some container configuratio ) transparently.