diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-03-15 17:03:49 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-03-17 13:27:37 +0300 |
commit | 34466f10506fd57836e89cffda7738c3008321b1 (patch) | |
tree | 1c4408885403a303e85a39d883399eca1aff05a5 /libbutl/filesystem.mxx | |
parent | 955afeb419ed02a078b45312949767692751274c (diff) |
Fix mkanylink() to complete relative target against link directory when create hardlink or copy
Diffstat (limited to 'libbutl/filesystem.mxx')
-rw-r--r-- | libbutl/filesystem.mxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 |