commit 1d226ba0a940beaa24fc0f6c5d9e580721056951 Author: Pavel Skrylev Date: Mon Aug 15 22:52:09 2022 +0300 fix: loading libraries via symlinks diff --git a/load.c b/load.c index 812fe2fe93..1cfafa6603 100644 --- a/load.c +++ b/load.c @@ -1116,6 +1116,8 @@ require_internal(rb_execution_context_t *ec, VALUE fname, int exception, bool wa path = saved_path; if (found) { + if (path) path = rb_realpath_internal(Qnil, path, 1); + if (!path || !(ftptr = load_lock(th->vm, RSTRING_PTR(path), warn))) { result = 0; }