mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] Add check for input and output archive being the same
This commit is contained in:
@@ -248,7 +248,7 @@ namespace SabreTools.Helper
|
||||
ArchiveType? oat = (File.Exists(outputarc) ? GetCurrentArchiveType(outputarc, logger) : ArchiveType.Zip);
|
||||
|
||||
// If we got back null (or the output is not a Zipfile), then it's not an archive, so we we return
|
||||
if (iat == null || (oat == null || oat != ArchiveType.Zip))
|
||||
if (iat == null || (oat == null || oat != ArchiveType.Zip) || inputarc == outputarc)
|
||||
{
|
||||
return success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user