From 13e8c0679cf0908765d491d541e03d40f574a502 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Aug 2019 16:38:46 +0200 Subject: Fix bug in Windows implementation of install_l() --- libbuild2/install/rule.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx index fdbbffa..5ca14e0 100644 --- a/libbuild2/install/rule.cxx +++ b/libbuild2/install/rule.cxx @@ -870,8 +870,8 @@ namespace build2 { // The -f part. // - if (file_exists (target, false /* follow_symlinks */)) - try_rmfile (target); + if (file_exists (rell, false /* follow_symlinks */)) + try_rmfile (rell); // We have to go the roundabout way by adding directory to the // target and then asking for a relative symlink because it may be a @@ -896,7 +896,7 @@ namespace build2 e.first == entry_type::other ? "hardlink" : nullptr); - fail << "unable to make " << w << ' ' << target << ": " << e.second; + fail << "unable to make " << w << ' ' << rell << ": " << e.second; } #endif } -- cgit v1.1