Use a file handle instead of a path to determine file size.
Motivation
Stat and the -s operator do not seem to support the \\?\ prefix that IIS adds when executing CGI. This meant that par.pl could never determine the size of the called exe breaking the magic position logic.
Description
Use a file handle instead of a path to determine file size.
Motivation
Stat and the
-s
operator do not seem to support the\\?\
prefix that IIS adds when executing CGI. This meant thatpar.pl
could never determine the size of the called exe breaking the magic position logic.Related Issues
41