diff --git a/src/fileio.cpp b/src/fileio.cpp index 045e561813..9a9e7e05dc 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -429,6 +429,9 @@ FILE *FioFOpenFile(const std::string &filename, const char *mode, Subdirectory s 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); }