Changeset - r25087:b146fe0ed0e3
[Not reviewed]
master
0 1 0
Charles Pigott - 3 years ago 2021-03-25 20:29:18
charlespigott@googlemail.com
Fix #8886: Don't try to resolve folders within tars named '.'
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -429,6 +429,9 @@ FILE *FioFOpenFile(const std::string &fi
 
			if (token == "..") {
 
				if (tokens.size() < 2) return nullptr;
 
				tokens.pop_back();
 
			} else if (token == ".") {
 
				/* Do nothing. "." means current folder, but you can create tar files with "." in the path.
 
				 * This confuses our file resolver. So, act like this folder doesn't exist. */
 
			} else {
 
				tokens.push_back(token);
 
			}
0 comments (0 inline, 0 general)