Search for dllimported shared libs in the base directory, not cwd.
authorPaolo Molaro <lupus@oddwiz.org>
Tue, 12 Oct 2010 13:53:25 +0000 (15:53 +0200)
committerPaolo Molaro <lupus@oddwiz.org>
Tue, 12 Oct 2010 13:57:34 +0000 (15:57 +0200)
commitd3985be4e45a001e73fdcc47db190b3df61b2a51
tree78837417a56837ccfe7fae89ea0ce4336d6d2d15
parent6a5b23824cc44885453cd69b1cc04bf49b817121
Search for dllimported shared libs in the base directory, not cwd.

* loader.c: we don't search the current directory anymore for shared
libraries referenced in DllImport attributes, as it has a slight
security risk. We search in the same directory where the referencing
image was loaded from, instead. Fixes bug# 641915.
mono/metadata/loader.c