Skip pal::realpath() error logging while probing directories
authorLeandro Pereira <leandro.pereira@microsoft.com>
Tue, 9 Jul 2019 19:48:12 +0000 (12:48 -0700)
committerLeandro A. F. Pereira <leandro@hardinfo.org>
Tue, 9 Jul 2019 22:45:58 +0000 (15:45 -0700)
commitfb72afd13212d680e5897bff7d3a1e68f539f3e9
tree94a6548a0f7f923697e35994edd7981c7da77429
parenta7d7bc5ad1b41a849b80f3b7c96a8f46efc98b77
Skip pal::realpath() error logging while probing directories

Both paths calling pal::realpath() and check its return value to see if
the probed paths actually exist in the filesystem; they do have logic
to handle those paths not existing, and printing error messages while
doing so isn't helpful for the user.

This happens when an application is published with one user but is
executed with another user -- for instance, when using containers (see
issue dotnet/core-setup#4038 for details).

Fixes dotnet/core-setup#4038.

Commit migrated from https://github.com/dotnet/core-setup/commit/024d2c0150c1ea356cfb33b2bcec91b39509084c
src/installer/corehost/cli/fxr/fx_muxer.cpp