On Mar 23, 2007, at 2:57 PM, [EMAIL PROTECTED] wrote: > On Mar 23, 2007, at 21:50 UTC, Dennis Birch wrote: > >> If it's any help, Stuffit Deluxe 9.0 seems to use a MacType of "Gzip" >> for .gz files. > > Yeah, but this is a sticky case if you only want to allow gzipped > tarballs. Of course, maybe that's not a reasonable expectation -- to > the extension police built into the OS, only ".gz" of foo.tar.gz is > the > extension; the rest can be changed without getting your knuckles > rapped. So I guess you should really accept any file that has type > "Gzip", or an extension of .tar.gz, .tgz, or .gz, and then you'll just > have to be prepared to deal with gzip archives that aren't tarballs.
I've hopefully resolved this by using an obscure set of values in the MacType in the eternal hope that nothing matches and the extensions entry is the driving force. However, to make sure, I've added code to check the file itself and make sure that it has the correct magic for a gzipped tar file. Tim -- Tim Jones [EMAIL PROTECTED] _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
