]>
granicus.if.org Git - file/log
Christos Zoulas [Fri, 7 Nov 2008 22:50:37 +0000 (22:50 +0000)]
- split moffset out of mprint.
- when indirect, remember that we were successful in returnval.
- check mget() error code.
- use print to conditionally code mprint.
Christos Zoulas [Fri, 7 Nov 2008 19:10:25 +0000 (19:10 +0000)]
don't pretend that we are text if encoding determined we are binary.
Christos Zoulas [Fri, 7 Nov 2008 18:57:28 +0000 (18:57 +0000)]
handle encoding better.
Christos Zoulas [Fri, 7 Nov 2008 18:57:08 +0000 (18:57 +0000)]
compat code for old .mime files.
Reuben Thomas [Fri, 7 Nov 2008 17:42:59 +0000 (17:42 +0000)]
Add .libs to .cvsignore.
Christos Zoulas [Fri, 7 Nov 2008 17:27:22 +0000 (17:27 +0000)]
restructure for readability and debugability. XXX the ascii stuff needs cleanup!
Christos Zoulas [Fri, 7 Nov 2008 17:26:44 +0000 (17:26 +0000)]
don't walk past the end of buffer causing segv.
Christos Zoulas [Fri, 7 Nov 2008 17:26:17 +0000 (17:26 +0000)]
change && to &
Christos Zoulas [Fri, 7 Nov 2008 17:25:59 +0000 (17:25 +0000)]
when -i don't print application/x-directorybinary.
Christos Zoulas [Fri, 7 Nov 2008 15:44:37 +0000 (15:44 +0000)]
we don't need a dup of mp3 magic now that we correctly handle ID3 tags.
Christos Zoulas [Thu, 6 Nov 2008 23:22:53 +0000 (23:22 +0000)]
Handle ID3 files.
Reuben Thomas [Thu, 6 Nov 2008 22:49:08 +0000 (22:49 +0000)]
Fixes to MIME detection.
Reuben Thomas [Thu, 6 Nov 2008 21:36:56 +0000 (21:36 +0000)]
Note dodgy magic.
Reuben Thomas [Thu, 6 Nov 2008 21:36:44 +0000 (21:36 +0000)]
Give failure, not error return code in case of non-identification.
Reuben Thomas [Thu, 6 Nov 2008 21:17:45 +0000 (21:17 +0000)]
This check-in mostly fixes a bunch of problems with MIME checks. It's
been tested, but there are probably still gotchas lurking.
* Fix --mime, --mime-type and --mime-encoding under new scheme.
* Return a precise ("utf-16le" or "utf-16be") MIME charset for
UTF-16.
* Fix error in comment caused by automatic indentation adding
words!
* Fix a printf with a non-literal format string.
* Fix formatting and punctuation of help for "--apple".
Reuben Thomas [Thu, 6 Nov 2008 21:15:47 +0000 (21:15 +0000)]
ID3 needn't mean audio/mpeg, so comment out that test. It could mean
Ogg, for example. Sigh.
Christos Zoulas [Thu, 6 Nov 2008 15:38:28 +0000 (15:38 +0000)]
use memchr instead of strchr because the strign might not be NUL terminated.
Christos Zoulas [Tue, 4 Nov 2008 16:48:42 +0000 (16:48 +0000)]
don't let gcc throw out our ident strings.
Christos Zoulas [Tue, 4 Nov 2008 16:38:28 +0000 (16:38 +0000)]
make sure that we always include "file.h" first which includes config.h
and add rcsid's to all files.
Reuben Thomas [Mon, 3 Nov 2008 06:18:34 +0000 (06:18 +0000)]
Fix a printf with a non-literal format string.
Christos Zoulas [Mon, 3 Nov 2008 05:34:27 +0000 (05:34 +0000)]
explain what this does.
Reuben Thomas [Sun, 2 Nov 2008 22:07:11 +0000 (22:07 +0000)]
Fix punctuation of "Apple".
Reuben Thomas [Sun, 2 Nov 2008 22:06:33 +0000 (22:06 +0000)]
Fix formatting of --apple documentation.
Reuben Thomas [Thu, 30 Oct 2008 10:54:06 +0000 (10:54 +0000)]
Add a FIXME for magic file order reading.
Reuben Thomas [Thu, 30 Oct 2008 10:50:24 +0000 (10:50 +0000)]
Fix output of charset in MIME type: precede by semi-colon. Fixes
Debian bug #501460.
Fix potential attacks via conversion specifications in magic strings.
Reuben Thomas [Thu, 30 Oct 2008 10:43:49 +0000 (10:43 +0000)]
Fix handle_annotation to allow both Apple and MIME types to be
printed, and to return correct code if MIME type is printed (1, not 0)
or if there's an error (-1 not 1).
Reuben Thomas [Thu, 30 Oct 2008 09:51:46 +0000 (09:51 +0000)]
Correct counts in struct magic words-per-field comments.
Christos Zoulas [Wed, 29 Oct 2008 13:54:42 +0000 (13:54 +0000)]
add xcursor
Christos Zoulas [Mon, 20 Oct 2008 19:04:12 +0000 (19:04 +0000)]
make sure that the error info is set.
Christos Zoulas [Mon, 20 Oct 2008 17:20:41 +0000 (17:20 +0000)]
more autoconf glue.
Christos Zoulas [Mon, 20 Oct 2008 15:14:17 +0000 (15:14 +0000)]
cleanups for non BSD compilation.
Christos Zoulas [Sat, 18 Oct 2008 20:47:47 +0000 (20:47 +0000)]
add apple creator/type
Christos Zoulas [Fri, 17 Oct 2008 18:07:42 +0000 (18:07 +0000)]
add cdf.h
Christos Zoulas [Thu, 16 Oct 2008 16:31:16 +0000 (16:31 +0000)]
better handling of mime encodings.
Christos Zoulas [Thu, 16 Oct 2008 16:30:34 +0000 (16:30 +0000)]
return NULL rather than core-dumping if no magic output is set.
Christos Zoulas [Thu, 16 Oct 2008 16:29:56 +0000 (16:29 +0000)]
try to read more types [does not work yet]
Christos Zoulas [Tue, 14 Oct 2008 13:40:01 +0000 (13:40 +0000)]
better handling of last sector.
Christos Zoulas [Tue, 14 Oct 2008 10:38:22 +0000 (10:38 +0000)]
pretty-print the OS.
Christos Zoulas [Mon, 13 Oct 2008 18:23:47 +0000 (18:23 +0000)]
fix confusion about short and long streams.
Christos Zoulas [Sun, 12 Oct 2008 21:09:58 +0000 (21:09 +0000)]
works on be-64 now.
Christos Zoulas [Sun, 12 Oct 2008 21:04:49 +0000 (21:04 +0000)]
re-factor so that we don't have code duplication in readcdf and cdf.
Christos Zoulas [Sun, 12 Oct 2008 19:37:04 +0000 (19:37 +0000)]
more byte order fixes.
Christos Zoulas [Sun, 12 Oct 2008 19:06:36 +0000 (19:06 +0000)]
Deal with 64 bit machines (structure packing)
Christos Zoulas [Sun, 12 Oct 2008 18:12:57 +0000 (18:12 +0000)]
mention cdf.
Christos Zoulas [Sun, 12 Oct 2008 17:07:14 +0000 (17:07 +0000)]
first try at byte order neutral code.
Christos Zoulas [Sun, 12 Oct 2008 15:38:51 +0000 (15:38 +0000)]
add cdf support.
Christos Zoulas [Thu, 9 Oct 2008 20:48:33 +0000 (20:48 +0000)]
more magic patches
Christos Zoulas [Thu, 9 Oct 2008 17:25:48 +0000 (17:25 +0000)]
fix doc
Christos Zoulas [Thu, 9 Oct 2008 17:25:01 +0000 (17:25 +0000)]
remove obsolete excludes
Christos Zoulas [Thu, 9 Oct 2008 17:24:03 +0000 (17:24 +0000)]
revert previous
Christos Zoulas [Thu, 9 Oct 2008 17:20:32 +0000 (17:20 +0000)]
mention latest fix
Christos Zoulas [Thu, 9 Oct 2008 17:19:11 +0000 (17:19 +0000)]
correct exclude issues from Randy McMurchy <randy@linuxfromscratch.org>
Christos Zoulas [Mon, 6 Oct 2008 20:16:04 +0000 (20:16 +0000)]
remove magic.mime references.
Christos Zoulas [Wed, 1 Oct 2008 14:30:45 +0000 (14:30 +0000)]
fix reading of ~/.magic
Christos Zoulas [Wed, 1 Oct 2008 14:14:45 +0000 (14:14 +0000)]
add bink
Christos Zoulas [Tue, 23 Sep 2008 14:49:23 +0000 (14:49 +0000)]
more timezone details.
Christos Zoulas [Tue, 23 Sep 2008 14:37:50 +0000 (14:37 +0000)]
add version from Edwin Groothuis edwin at freebsd.org
Christos Zoulas [Tue, 23 Sep 2008 14:34:25 +0000 (14:34 +0000)]
mdump is not available with COMPILE_ONLY
Christos Zoulas [Tue, 23 Sep 2008 14:26:45 +0000 (14:26 +0000)]
typo in mask.
Christos Zoulas [Tue, 23 Sep 2008 14:26:32 +0000 (14:26 +0000)]
separate the mach-o java and jar entries since they cannot share mime types.
Christos Zoulas [Fri, 12 Sep 2008 17:54:05 +0000 (17:54 +0000)]
add meta
Reuben Thomas [Wed, 10 Sep 2008 21:30:28 +0000 (21:30 +0000)]
Comment out the graphviz patterns, as they match far too many files.
Explanation given. I suggest mailing the graphviz people to ask if
anyone wants to sort them out.
Christos Zoulas [Tue, 2 Sep 2008 07:11:30 +0000 (07:11 +0000)]
remove *li.
Christos Zoulas [Sun, 31 Aug 2008 07:58:00 +0000 (07:58 +0000)]
more lint fixes.
Christos Zoulas [Sun, 31 Aug 2008 04:52:03 +0000 (04:52 +0000)]
fix printf format
Christos Zoulas [Sat, 30 Aug 2008 17:51:09 +0000 (17:51 +0000)]
fix LP64 build
Christos Zoulas [Sat, 30 Aug 2008 10:01:01 +0000 (10:01 +0000)]
file 4.26
Christos Zoulas [Sat, 30 Aug 2008 09:59:59 +0000 (09:59 +0000)]
mention not so recent changes.
Christos Zoulas [Sat, 30 Aug 2008 09:50:20 +0000 (09:50 +0000)]
document strength directive
Christos Zoulas [Wed, 27 Aug 2008 10:30:04 +0000 (10:30 +0000)]
fix png.
Reuben Thomas [Mon, 25 Aug 2008 23:56:32 +0000 (23:56 +0000)]
Add text/x-lua MIME type for Lua scripts.
Reuben Thomas [Mon, 25 Aug 2008 23:54:20 +0000 (23:54 +0000)]
{ needs escaping in regex.
Christos Zoulas [Fri, 8 Aug 2008 08:24:06 +0000 (08:24 +0000)]
add warc
Christos Zoulas [Fri, 8 Aug 2008 08:19:40 +0000 (08:19 +0000)]
add web archive.
Christos Zoulas [Thu, 7 Aug 2008 09:22:58 +0000 (09:22 +0000)]
more whitespace matches.
Christos Zoulas [Mon, 28 Jul 2008 19:08:29 +0000 (19:08 +0000)]
add graphviz
Christos Zoulas [Mon, 28 Jul 2008 17:25:21 +0000 (17:25 +0000)]
remove unused var.
Christos Zoulas [Mon, 28 Jul 2008 17:13:32 +0000 (17:13 +0000)]
add magic for graphviz.
Reuben Thomas [Sun, 27 Jul 2008 12:21:14 +0000 (12:21 +0000)]
Document my recent changes.
Reuben Thomas [Sat, 26 Jul 2008 00:24:17 +0000 (00:24 +0000)]
Add a TODO file based on bugs and wishlist items in Debian BTS
Reuben Thomas [Fri, 25 Jul 2008 23:59:01 +0000 (23:59 +0000)]
Have finer-grained pseudo-MIME types for non-regular files.
Reuben Thomas [Fri, 25 Jul 2008 23:30:32 +0000 (23:30 +0000)]
Change info_from_stat to unreadable_info, using access to determine
information more accurately and comprehensibly.
Reuben Thomas [Fri, 25 Jul 2008 14:20:19 +0000 (14:20 +0000)]
Add a FIXME for JPEG comments
Christos Zoulas [Tue, 22 Jul 2008 15:59:06 +0000 (15:59 +0000)]
add sitemap
Christos Zoulas [Sun, 20 Jul 2008 04:02:15 +0000 (04:02 +0000)]
fix swap8; from toby@apple.com
Christos Zoulas [Sat, 19 Jul 2008 14:32:21 +0000 (14:32 +0000)]
don't eat trailing \n.
Christos Zoulas [Fri, 18 Jul 2008 17:24:06 +0000 (17:24 +0000)]
add bonus for descriptionless entries.
Christos Zoulas [Wed, 16 Jul 2008 18:00:57 +0000 (18:00 +0000)]
make this compilable with a c++ compiler.
Christos Zoulas [Tue, 15 Jul 2008 17:45:13 +0000 (17:45 +0000)]
deal with gcc'isms
Christos Zoulas [Sat, 5 Jul 2008 15:44:36 +0000 (15:44 +0000)]
remove cdefs.h macros.
Christos Zoulas [Fri, 4 Jul 2008 18:31:38 +0000 (18:31 +0000)]
no <sys/cdefs.h> and no __P
Christos Zoulas [Thu, 3 Jul 2008 16:42:51 +0000 (16:42 +0000)]
add mygetopt.h
Christos Zoulas [Thu, 3 Jul 2008 15:59:32 +0000 (15:59 +0000)]
make jpeg stronger than other short magic
Christos Zoulas [Thu, 3 Jul 2008 15:53:10 +0000 (15:53 +0000)]
more portability ifdefs
Christos Zoulas [Thu, 3 Jul 2008 15:48:18 +0000 (15:48 +0000)]
more fixes for ancient systems
Christos Zoulas [Wed, 2 Jul 2008 15:27:05 +0000 (15:27 +0000)]
welcome to 4.25
Christos Zoulas [Wed, 2 Jul 2008 15:22:46 +0000 (15:22 +0000)]
- strength addition
- magic patches
Christos Zoulas [Sat, 28 Jun 2008 14:48:05 +0000 (14:48 +0000)]
mention the date lisp version changed.
Christos Zoulas [Fri, 27 Jun 2008 22:23:54 +0000 (22:23 +0000)]
Efficiency hack.
Christos Zoulas [Fri, 27 Jun 2008 17:21:20 +0000 (17:21 +0000)]
add x3d