Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37902270
en ru br
ALT Linux repositórios
S:3.1.2-alt2.1
5.0: 1.8.7-alt7
4.1: 1.8.7-alt0.M41.5
4.0: 1.8.6-alt2.M40.2
3.0: 1.8.2-alt7

Group :: Desenvolvimento/Ruby
RPM: ruby

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: realpath.patch
Download


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;
 	    }
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009