[maemo-developers] Looking for some help with autoconf/automake/dpkg (and general feedback on my code)

From: Neal H. Walfield neal at walfield.org
Date: Tue Oct 25 11:27:43 EEST 2011
At Tue, 25 Oct 2011 14:07:13 +0800,
Jonathan Wilson wrote:
> I suspect also I need more in the postinst file in terms of verifying the 
> correct binary and things, any help would be appreciated.

You should never modify a binary in place.  Instead, copy the binary,
modify it and then atomically replace it using mv.  If a binary is in
use by a program and not all of it is loaded in memory and you modify
it, it may end up using neither the original nor the new version but
some inconsistent one...

Neal
More information about the maemo-developers mailing list