diff options
-rw-r--r-- | src/fileio.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 045e56181..9a9e7e05d 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); } |