From 0a5d95d2add2f9820db418e01ba32b8f8b5788ec Mon Sep 17 00:00:00 2001 From: Senthil Date: Wed, 16 Mar 2016 14:09:29 -0700 Subject: [PATCH] Fix casing of shared and add DT_DIR to readdir --- src/corehost/cli/fxr/fx_muxer.cpp | 2 +- src/corehost/common/pal.unix.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/corehost/cli/fxr/fx_muxer.cpp b/src/corehost/cli/fxr/fx_muxer.cpp index 8012d09c4..75a195982 100644 --- a/src/corehost/cli/fxr/fx_muxer.cpp +++ b/src/corehost/cli/fxr/fx_muxer.cpp @@ -29,7 +29,7 @@ pal::string_t fx_muxer_t::resolve_fx_dir(const pal::string_t& muxer_dir, runtime } auto fx_dir = muxer_dir; - append_path(&fx_dir, _X("Shared")); + append_path(&fx_dir, _X("shared")); append_path(&fx_dir, fx_name.c_str()); // If not roll forward or if pre-release, just return. diff --git a/src/corehost/common/pal.unix.cpp b/src/corehost/common/pal.unix.cpp index a58ad8761..117b07a89 100644 --- a/src/corehost/common/pal.unix.cpp +++ b/src/corehost/common/pal.unix.cpp @@ -202,6 +202,7 @@ void pal::readdir(const pal::string_t& path, std::vector* list) // We are interested in files only switch (entry->d_type) { + case DT_DIR: case DT_REG: break;