Fix paths of content in tar files
This commit is contained in:
@@ -525,7 +525,8 @@ bool TarScanner::AddFile(const std::string &filename, size_t basepath_length, co
|
|||||||
|
|
||||||
_tar_list[this->subdir][filename] = std::string{};
|
_tar_list[this->subdir][filename] = std::string{};
|
||||||
|
|
||||||
std::string filename_base = filename;
|
auto last_sep = filename.find_last_of(PATHSEP);
|
||||||
|
std::string filename_base = last_sep == std::string::npos ? filename : filename.substr(last_sep + 1);
|
||||||
SimplifyFileName(filename_base.data());
|
SimplifyFileName(filename_base.data());
|
||||||
|
|
||||||
TarLinkList links; ///< Temporary list to collect links
|
TarLinkList links; ///< Temporary list to collect links
|
||||||
|
Reference in New Issue
Block a user