Project

General

Profile

« Previous | Next » 

Revision c3ad34c7

Added by nobu (Nobuyoshi Nakada) almost 11 years ago

ruby.c: replace with real path

  • ruby.c (dladdr_path): replace the executable path with symlinked
    real path. dladdr(3) on Linux returns the argv[0] as dli_fname
    instead of the real path, for a symbol defined in the executable
    file itself. [Bug #10776]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e