diff --git a/src/writer/internal/inode_ordering.cpp b/src/writer/internal/inode_ordering.cpp index 8493eb1e..f590ba7e 100644 --- a/src/writer/internal/inode_ordering.cpp +++ b/src/writer/internal/inode_ordering.cpp @@ -228,7 +228,7 @@ void inode_ordering_::by_explicit_order( path_order.resize(raw.size()); for (auto i : index) { - paths[i] = fs::relative(raw[i]->any()->fs_path(), root_path); + paths[i] = raw[i]->any()->fs_path().lexically_relative(root_path); if (auto it = order.find(paths[i]); it != order.end()) { path_order[i] = it->second;