simon: > >> > If you're going to check the magic after the wordsize and bytecode, you > >> > might as well get rid of it altogether. ... Jonathan: > ...Change the packfile format, or code around the current way
If you do tweak the signature for the packfile format, I suggest you take a leaf out of the PNG specification and ensure that the signature will robustly detect common errors such as byte order transpositions, CRLF-to-newline mappings (e.g. when binary files are FTPd using ASCII mode), etc. See section 12.11 of the PNG specification: http://www.faqs.org/rfcs/rfc2083.html Regards, Roger Browne