Comparing Executables
Comparing Executables
- Subject: Comparing Executables
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 16 Jun 2004 12:17:06 +0200
I have two computers which I try to keep in sync.
I create an application MyApp on computer A, copy it do computer B,
open it in B and compare the two things (using cmp - l
.../MyApp.app/Contents/MacOS/MyApp).
They are not the same.
Using otool - l I can see that the time stamps of Cocoa and libSystem
have been changed in the load commands in the copy on computer B.
(By the way, these values get changed even if I do chmod 555 for
everything.)
So the question: Is there a Cocoa way (or Unix call, or Unix command or
even Carbon call) which does: "compare two executables byte for byte
but ignore the time stamps in the Load commands" ?
Or do I have to write my own compare function?
Some more things I found out:
1. while updating to 10.3.4 there was some rebuilding kextcache which
set the time stamp on libSystem.
2. Installing the latest security update did a update_prebinding which
set the time stamp on the Cocoa framework.
3. When I start an older App (which was linked to older versions of
these libraries) the timestamp does never get changed.
Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.