Closed olszomal closed 10 months ago
Won't it delete the input file if the input file and the output file are the same?
If the input file and the output file are the same, the program will fail to create the output file and will exit without deleting the file.
If the input file and the output file are the same, the program will fail to create the output file and will exit without deleting the file.
Are you saying that it was not possible to replicate the bug described in #313? Could this issue be specific to a particular host operating system?
The error:
Unrecognized file type - file is too short: <input file.exe>
says that the <input file.exe>
input file may have previously been saved as a 0kb file.
I fixed the issue of leaving the output file as a 0kb file in case of error.
@Niaxor Could you take a look?
On Windows, test.exe
, TEST.EXE
and .\test.exe
are all the same file. I'd prefer osslsigncode to never overwrite an existing file regardless of its name.
Fix #313