aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-15 16:38:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-15 16:38:46 +0200
commit13e8c0679cf0908765d491d541e03d40f574a502 (patch)
tree4a890dec773567933a5ecba2d70b1604a3325375 /libbuild2/install
parenta0e2979d91d50b175b08b3f35cda7f75fc10bbac (diff)
Fix bug in Windows implementation of install_l()
Diffstat (limited to 'libbuild2/install')
-rw-r--r--libbuild2/install/rule.cxx6
1 files 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
}