diff --git a/uppsrc/Core/z.cpp b/uppsrc/Core/z.cpp index 440be2a60..318aec44d 100644 --- a/uppsrc/Core/z.cpp +++ b/uppsrc/Core/z.cpp @@ -457,9 +457,13 @@ bool GZDecompressFile(const char *dstfile, const char *srcfile, Gate2 progress) { String dstfile = srcfile; - if(!dstfile.EndsWith(".gz")) + if(dstfile.EndsWith(".gz")) + dstfile.Trim(dstfile.GetLength() - 3); + else + if(dstfile.EndsWith(".gzip")) + dstfile.Trim(dstfile.GetLength() - 5); + else return false; - dstfile.Trim(dstfile.GetLength() - 3); return GZDecompressFile(dstfile, srcfile, progress); }