diff options
| author | Nicole Mazzuca <mazzucan@outlook.com> | 2019-08-10 12:25:22 -0700 |
|---|---|---|
| committer | nicole mazzuca <mazzucan@outlook.com> | 2019-08-10 13:13:21 -0700 |
| commit | 58f95cc856cdb026eeadeb29d30e5ea2fd5b252c (patch) | |
| tree | 25b3eeb4125df57522773c6b97b8fd6f6a7b9c6d /toolsrc | |
| parent | 420dbffaa0f7138ecc935aa06138d46a19b4ce6f (diff) | |
| download | vcpkg-58f95cc856cdb026eeadeb29d30e5ea2fd5b252c.tar.gz vcpkg-58f95cc856cdb026eeadeb29d30e5ea2fd5b252c.zip | |
fix two bugs in status
Diffstat (limited to 'toolsrc')
| -rw-r--r-- | toolsrc/src/vcpkg/base/files.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg/base/files.cpp b/toolsrc/src/vcpkg/base/files.cpp index 7c29c8e10..bbf37fd25 100644 --- a/toolsrc/src/vcpkg/base/files.cpp +++ b/toolsrc/src/vcpkg/base/files.cpp @@ -82,7 +82,7 @@ namespace vcpkg::Files return fs::file_status(ft, permissions); #else - auto result = symlink ? fs::stdfs::symlink_status(p, ec) : fs::stdfs::status(p, ec); + auto result = follow_symlinks ? fs::stdfs::status(p, ec) : fs::stdfs::symlink_status(p, ec); // libstdc++ doesn't correctly not-set ec on nonexistent paths if (ec.value() == ENOENT || ec.value() == ENOTDIR) { @@ -95,7 +95,7 @@ namespace vcpkg::Files fs::file_status status(const fs::path& p, std::error_code& ec) noexcept { - return status_implementation(false, p, ec); + return status_implementation(true, p, ec); } fs::file_status symlink_status(const fs::path& p, std::error_code& ec) noexcept { |
