From 34466f10506fd57836e89cffda7738c3008321b1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 15 Mar 2020 17:03:49 +0300 Subject: Fix mkanylink() to complete relative target against link directory when create hardlink or copy --- libbutl/filesystem.mxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbutl/filesystem.mxx') diff --git a/libbutl/filesystem.mxx b/libbutl/filesystem.mxx index a445b70..94ed366 100644 --- a/libbutl/filesystem.mxx +++ b/libbutl/filesystem.mxx @@ -362,7 +362,9 @@ LIBBUTL_MODEXPORT namespace butl // no directories, only files), whichever is possible in that order. If // `relative` is true, then make the symlink target relative to the link // directory (note: it is the caller's responsibility to make sure this is - // possible). + // possible). Otherwise, assume a relative target to be relative to the + // link directory and complete it accordingly when create a hardlink or a + // copy. // // On success, return the type of entry created: `regular` for copy, // `symlink` for symlink, and `other` for hardlink. On failure, throw a -- cgit v1.1