From dc1b424b75f200a716c3bd9b91891cf7f818ad32 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 9 Sep 2016 18:29:37 +0300 Subject: Fix crashing on unhandled system_error thrown by file_exists() --- build2/cc/pkgconfig.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/cc/pkgconfig.cxx') diff --git a/build2/cc/pkgconfig.cxx b/build2/cc/pkgconfig.cxx index 23128e4..3a7bf82 100644 --- a/build2/cc/pkgconfig.cxx +++ b/build2/cc/pkgconfig.cxx @@ -63,7 +63,7 @@ namespace build2 // dir_path pkgd (dir_path (libd) /= dir); - if (!dir_exists (pkgd)) + if (!exists (pkgd)) return false; // See if there is a corresponding .pc file. About half of them called @@ -82,7 +82,7 @@ namespace build2 f /= stem; f += ".pc"; - if (file_exists (f)) + if (exists (f)) return true; f = pkgd; @@ -90,7 +90,7 @@ namespace build2 f += stem; f += ".pc"; - if (file_exists (f)) + if (exists (f)) return true; if (proj != nullptr) @@ -99,7 +99,7 @@ namespace build2 f /= *proj; f += ".pc"; - if (file_exists (f)) + if (exists (f)) return true; } -- cgit v1.1