Skip to content

Commit

Permalink
Merge pull request jruby#8361 from headius/pathname_glob_no_realpath
Browse files Browse the repository at this point in the history
Do not call File.realpath on our path
  • Loading branch information
headius authored Oct 9, 2024
2 parents 638e5b5 + ec75cdc commit c47402b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public IRubyObject glob(ThreadContext context, IRubyObject[] _args, Block block)
}

args[2] = RubyHash.newSmallHash(runtime);
((RubyHash) args[2]).fastASetSmall(runtime.newSymbol("base"), context.runtime.getFile().callMethod(context, "realpath", getPath()));
((RubyHash) args[2]).fastASetSmall(runtime.newSymbol("base"), getPath());

JavaSites.PathnameSites sites = sites(context);
CallSite glob = sites.glob;
Expand Down

0 comments on commit c47402b

Please sign in to comment.