Fix corerun to support argv[0] that's not a full path
authorStephen Toub <stoub@microsoft.com>
Sat, 28 Mar 2015 04:52:24 +0000 (00:52 -0400)
committerStephen Toub <stoub@microsoft.com>
Sat, 28 Mar 2015 04:52:24 +0000 (00:52 -0400)
commit28424b7186f6b782c23206fd518963b1a93328b0
treef082363f8721fef1a7aecf74c41b5c29672349b3
parent1da8c380ed5baaa370092babe4f03602792da352
Fix corerun to support argv[0] that's not a full path

Unix's corerun tries to parse a path out of argv[0], and blows up
in std::string if no '/' is found.  This commit adds a check to make
sure that there was a '/' found, after first expanding argv[0] to an
absolute path.
src/coreclr/hosts/unixcorerun/corerun.cpp