Corrupt Windows executables - K-Lite setup programs only

Benjamin R. Haskell
Sun, 07 Feb 2010 15:15:25 -0000

On Fri, 5 Feb 2010, Jeff Stelzner wrote:

> Hi: I'm running rsync-3.0.7 from a freebsd-7.2 x32 box and a
> freebsd-8.0-x64 box. All files seem to replicate fine except the setup
> programs for K-Lite Codec Pack e.g.
>
http://fileforum.betanews.com/sendfile/1094057842/2/1265418487.c39d017a17a32d0bf3691cb9f6f8121de588d44f/K-Lite_Codec_Pack_570_Standard.exe
> [10667732 bytes]
> -or-
>
http://fileforum.betanews.com/sendfile/1094057842/4/1265418301.a73ce9886ecfd2d554e3045cb7592aa0cab10c14/klcp_update_570_20100203.exe
> [3072373 bytes]
>
> The command options used to transfer are:
>     rsync -v -4 -t -e ssh
>
> After transfer, I try to execute the program and get a pop-up error
> 'The setup files are corrupted. Please obtain a new copy of the
> program'.  If I simply download the file directly to the target
> freebsd box via the URL above it executes fine [i.e. the original
> binary is not corrupt].
>
> The problem occurs *consistently* with *any* version of the K-Lite
> setup/upgrade programs. And apparently only with these.
>
> The byte sizes, mod times, and md5 signatures are identical on both sides:
> 10667732 Feb  3 15:33 K-Lite_Codec_Pack_570_Standard.exe
>     MD5 (K-Lite_Codec_Pack_570_Standard.exe) >
ab3a6fe763bf4fe79c1f00cfe556fee9
> 3072373 Feb  3 15:28 klcp_update_570_20100203.exe
>     MD5 (klcp_update_570_20100203.exe) = 703c7ea4b11666fc4c37039528c0d905

If the MD5 sums are the same on both sides, the files' contents are the
same.  It's likely something to do with permissions or some other
metadata.  Probably permissions.  (which a na?ve installer might report
as 'corrupted', if it doesn't check explicitly for permissions
first.)
Kinda curious how you're running a Win32 .exe on FreeBSD, but maybe that
adds another point of failure.

--
Best,
Ben