From 590cfe7e35ed7519e4e85edf7ba1d8f48df4f7b0 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 1 Sep 2025 19:30:01 -0500 Subject: [PATCH] fs_clonepath.cpp --- src/fs_clonepath.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fs_clonepath.cpp b/src/fs_clonepath.cpp index 7ae2278e..3f7c6d76 100644 --- a/src/fs_clonepath.cpp +++ b/src/fs_clonepath.cpp @@ -72,7 +72,9 @@ fs::clonepath(const string &srcpath_, if((relpath_ == NULL) || (relpath_[0] == '\0')) return 0; - + relpath = relpath_; + if(relpath[0] != '/') + relpath = '/' + relpath; dirname = fs::path::dirname(relpath_); if(dirname != "/")