Changeset - r28718:45f6fc5ac705
[Not reviewed]
master
0 1 0
Loïc Guilloux - 3 months ago 2024-02-09 16:25:56
glx22@users.noreply.github.com
Fix #12041, 0c81579: Tarball extraction failing due to incorrect filename (#12044)
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -700,7 +700,10 @@ bool ExtractTar(const std::string &tar_f
 
	for (auto &it2 : _tar_filelist[subdir]) {
 
		if (tar_filename != it2.second.tar_filename) continue;
 

	
 
		filename.replace(p + 1, std::string::npos, it2.first);
 
		/* it2.first is tarball + PATHSEPCHAR + name. */
 
		std::string_view name = it2.first;
 
		name.remove_prefix(name.find_first_of(PATHSEPCHAR) + 1);
 
		filename.replace(p + 1, std::string::npos, name);
 

	
 
		Debug(misc, 9, "  extracting {}", filename);
 

	
0 comments (0 inline, 0 general)