[libc-commits] [libc] [llvm] [libc][realpath] Follow symlinks (PR #212164)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Wed Jul 29 07:58:48 PDT 2026
================
@@ -34,18 +35,27 @@
namespace LIBC_NAMESPACE_DECL {
namespace {
+#ifdef SYMLOOP_MAX
+constexpr size_t MAX_SYMLINK_FOLLOWS = SYMLOOP_MAX;
+#else
+// Maximum number of symlinks that may be followed during path resolution.
+// This is a large, arbitrary value consistent with other libc implementations.
+// Must be at least _POSIX_SYMLOOP_MAX (8). Ideally should be read from sysconf,
----------------
kaladron wrote:
Can you please make the overlay/sysconf bit with TODO so that some interpid soul might find it one day?
https://github.com/llvm/llvm-project/pull/212164
More information about the libc-commits
mailing list