Репозитории ALT
S: | 3.1.2-alt2.1 |
5.1: | 1.9.1-alt1.r26040.1 |
4.1: | 1.8.7-alt0.M41.5 |
4.0: | 1.8.6-alt2.M40.2 |
3.0: | 1.8.2-alt7 |
Группа :: Разработка/Ruby
Пакет: ruby
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: realpath.patch
Скачать
Скачать
commit 1d226ba0a940beaa24fc0f6c5d9e580721056951
Author: Pavel Skrylev <majioa@altlinux.org>
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;
}