Up to [cvs.netbsd.org] / pkgsrc / sysutils / file
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 30 03:53:54 2012 UTC (8 weeks ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2012Q1-base,
pkgsrc-2012Q1,
HEAD
Changes since 1.13: +5 -8
lines
Diff to previous 1.13 (colored)
Update file from 5.03 to 5.11. Changes are too may to write here but includes security fix CVE-2012-1571. Add LICENSE, too.
Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 23 20:54:09 2012 UTC (4 months ago) by joerg
Branch: MAIN
Changes since 1.12: +2 -2
lines
Diff to previous 1.12 (colored)
Add a missing argument to -width. Bump revision.
Revision 1.12 / (download) - annotate - [select for diffs], Thu May 21 15:58:17 2009 UTC (3 years ago) by sno
Branch: MAIN
CVS Tags: pkgsrc-2011Q4-base,
pkgsrc-2011Q4,
pkgsrc-2011Q3-base,
pkgsrc-2011Q3,
pkgsrc-2011Q2-base,
pkgsrc-2011Q2,
pkgsrc-2011Q1-base,
pkgsrc-2011Q1,
pkgsrc-2010Q4-base,
pkgsrc-2010Q4,
pkgsrc-2010Q3-base,
pkgsrc-2010Q3,
pkgsrc-2010Q2-base,
pkgsrc-2010Q2,
pkgsrc-2010Q1-base,
pkgsrc-2010Q1,
pkgsrc-2009Q4-base,
pkgsrc-2009Q4,
pkgsrc-2009Q3-base,
pkgsrc-2009Q3,
pkgsrc-2009Q2-base,
pkgsrc-2009Q2
Changes since 1.11: +7 -5
lines
Diff to previous 1.11 (colored)
pkgsrc changes:
- Updating package for file from 5.00 to 5.03
- Adding/updating patch which prevents non-gcc is invoked
with gcc's warning options
Upstream changes:
2009-05-06 10:25 Christos Zoulas <christos@zoulas.com>
* Avoid null dereference in cdf code (Drew Yao)
* More cdf bounds checks and overflow checks
2009-05-01 18:37 Christos Zoulas <christos@zoulas.com>
* Buffer overflow fixes from Drew Yao
2009-04-30 17:10 Christos Zoulas <christos@zoulas.com>
* Fix more cdf lossage. All the documents I have
right now print the correct information.
2009-03-27 18:43 Christos Zoulas <christos@zoulas.com>
* don't print \012- separators in the same magic entry
if it consists of multiple magic printing lines.
2009-03-23 10:20 Christos Zoulas <christos@zoulas.com>
* Avoid file descriptor leak in compress code from
(Daniel Novotny)
2009-03-18 16:50 Christos Zoulas <christos@zoulas.com>
* Allow escaping of relation characters, so that we can say \^[A-Z]
and the ^ is not eaten as a relation char.
* Fix troff and fortran to their previous glory using
regex. This was broken since their removel from ascmagic.
2009-03-10 16:50 Christos Zoulas <christos@zoulas.com>
* don't use strlen in strndup() (Toby Peterson)
2009-03-10 7:45 Christos Zoulas <christos@zoulas.com>
* avoid c99 syntax.
2009-02-23 15:45 Christos Zoulas <christos@zoulas.com>
* make the cdf code use the buffer first if available,
and then the fd code.
Revision 1.11 / (download) - annotate - [select for diffs], Sat Mar 21 20:55:58 2009 UTC (3 years, 2 months ago) by sno
Branch: MAIN
CVS Tags: pkgsrc-2009Q1-base,
pkgsrc-2009Q1
Changes since 1.10: +2 -1
lines
Diff to previous 1.10 (colored)
Adding a patch to allow compiling with gcc incompatible compilers and enabling LINUX_COMPAT on AIX (file-5.00 requires it, because it allocates 0 bytes) Oked by he@
Revision 1.10 / (download) - annotate - [select for diffs], Tue Mar 10 23:30:00 2009 UTC (3 years, 2 months ago) by he
Branch: MAIN
Changes since 1.9: +5 -5
lines
Diff to previous 1.9 (colored)
Update from version 4.26 to 5.00.
Pkgsrc changes:
o Adapt patch-aa to new file
Upstream changes:
2008-12-12 15:50 Christos Zoulas <christos@zoulas.com>
* fix initial offset calculation for non 4K sector files
* add loop limits to avoid DoS attacks by constructing
looping sector references.
2008-12-03 13:05 Christos Zoulas <christos@zoulas.com>
* fix memory botches on cdf file parsing.
* exit with non-zero value for any error, not just for the last
file processed.
2008-11-09 20:42 Charles Longeau <chl@tuxfamily.org>
* Replace all str{cpy,cat} functions with strl{cpy,cat}
* Ensure that strl{cpy,cat} are included in libmagic,
as needed.
2008-11-06 18:18 Christos Zoulas <christos@zoulas.com>
* Handle ID3 format files.
2008-11-06 23:00 Reuben Thomas <rrt@sc3d.org>
* Fix --mime, --mime-type and --mime-encoding under new scheme.
* Rename "ascii" to "text" and add "encoding" test.
* Return a precise ("utf-16le" or "utf-16be") MIME charset for
UTF-16.
* Fix error in comment caused by automatic indentation adding
words!
2008-11-06 10:35 Christos Zoulas <christos@astron.com>
* use memchr instead of strchr because the string
might not be NUL terminated (Scott MacVicar)
2008-11-03 07:31 Reuben Thomas <rrt@sc3d.org>
* Fix a printf with a non-literal format string.
* Fix formatting and punctuation of help for "--apple".
2008-10-30 11:00 Reuben Thomas <rrt@sc3d.org>
* Correct words counts in comments of struct magic.
* 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).
* Fix output of charset for MIME type (precede with semi-colon;
fixes Debian bug #501460).
* Fix potential attacks via conversion specifications in magic
strings.
* Add a FIXME for Debian bug #488562 (magic files should be
read in a defined order, by sorting the names).
2008-10-18 16:45 Christos Zoulas <christos@astron.com>
* Added APPLE file creator/type
2008-10-12 10:20 Christos Zoulas <christos@astron.com>
* Added CDF parsing
2008-10-09 16:40 Christos Zoulas <christos@astron.com>
* filesystem and msdos patches (Joerg Jenderek)
2008-10-09 13:20 Christos Zoulas <christos@astron.com>
* correct --exclude documentation issues: remove troff and fortran
and rename "token" to "tokens". (Randy McMurchy)
2008-10-01 10:30 Christos Zoulas <christos@astron.com>
* Read ~/.magic in addition to the default magic file not instead
of, as documented in the man page.
2008-09-10 21:30 Reuben Thomas <rrt@sc3d.org>
* Comment out graphviz patterns, as they match too many files.
2008-08-25 23:56 Reuben Thomas <rrt@sc3d.org>
* Add text/x-lua MIME type for Lua scripts.
* Escape { in regex in graphviz patterns.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 29 20:50:16 2008 UTC (3 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base,
pkgsrc-2008Q4
Changes since 1.8: +5 -5
lines
Diff to previous 1.8 (colored)
PR/39596: Jwens Rehsack: Update to file-4.26 (4.21 is gone) and add built-in version detection.
Revision 1.7.2.1 / (download) - annotate - [select for diffs], Thu Jun 14 23:52:22 2007 UTC (4 years, 11 months ago) by salo
Branch: pkgsrc-2007Q1
Changes since 1.7: +4 -4
lines
Diff to previous 1.7 (colored) next main 1.8 (colored)
Pullup ticket 2114 - requested by adrianp security update for file Revisions pulled up: - pkgsrc/sysutils/file/Makefile 1.15 - pkgsrc/sysutils/file/distinfo 1.8 Module Name: pkgsrc Committed By: adrianp Date: Thu Jun 14 16:29:42 UTC 2007 Modified Files: pkgsrc/sysutils/file: Makefile distinfo Log Message: Update to 4.21 +2007-05-24 10:00 Christos Zoulas <christos@zoulas.com> + + * Fix another integer overflow (Colin Percival) + +2007-03-26 13:58 Christos Zoulas <christos@zoulas.com> + + * make sure that all of struct magic_set is initialized appropriately + (Brett) + +2007-03-25 17:44 Christos Zoulas <christos@zoulas.com> + + * reset left bytes in the buffer (Dmitry V. Levin) + + * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS + (Peter Avalos) + +2007-03-15 10:51 Christos Zoulas <christos@zoulas.com> + + * fix fortran and nroff reversed tests (Dmitry V. Levin) + + * fix exclude option (Dmitry V. Levin)
Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 14 16:29:42 2007 UTC (4 years, 11 months ago) by adrianp
Branch: MAIN
CVS Tags: pkgsrc-2008Q3-base,
pkgsrc-2008Q3,
pkgsrc-2008Q2-base,
pkgsrc-2008Q2,
pkgsrc-2008Q1-base,
pkgsrc-2008Q1,
pkgsrc-2007Q4-base,
pkgsrc-2007Q4,
pkgsrc-2007Q3-base,
pkgsrc-2007Q3,
pkgsrc-2007Q2-base,
pkgsrc-2007Q2,
cwrapper,
cube-native-xorg-base,
cube-native-xorg
Changes since 1.7: +4 -4
lines
Diff to previous 1.7 (colored)
Update to 4.21 +2007-05-24 10:00 Christos Zoulas <christos@zoulas.com> + + * Fix another integer overflow (Colin Percival) + +2007-03-26 13:58 Christos Zoulas <christos@zoulas.com> + + * make sure that all of struct magic_set is initialized appropriately + (Brett) + +2007-03-25 17:44 Christos Zoulas <christos@zoulas.com> + + * reset left bytes in the buffer (Dmitry V. Levin) + + * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS + (Peter Avalos) + +2007-03-15 10:51 Christos Zoulas <christos@zoulas.com> + + * fix fortran and nroff reversed tests (Dmitry V. Levin) + + * fix exclude option (Dmitry V. Levin)
Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 25 11:28:12 2007 UTC (5 years, 2 months ago) by adrianp
Branch: MAIN
CVS Tags: pkgsrc-2007Q1-base
Branch point for: pkgsrc-2007Q1
Changes since 1.6: +4 -4
lines
Diff to previous 1.6 (colored)
Update to file 4.20: New in this release is a BNF file that shows the syntax of magic files. Many more checks have been added to the magic parser and badly formatted magic entries have been fixed. There is now a "default" statement in the magic entires. Finally a exploitable flaw in the print buffer management has been fixed.
Revision 1.6 / (download) - annotate - [select for diffs], Wed Jan 17 17:36:12 2007 UTC (5 years, 4 months ago) by tonio
Branch: MAIN
Changes since 1.5: +4 -4
lines
Diff to previous 1.5 (colored)
Update sysutils/file to 4.18 Recent changes include: 2006-10-31 15:14 Christos Zoulas <christos@zoulas.com> * Check offset before copying (Mike Frysinger) * merge duplicated code * add quad date support * make sure that we nul terminate desc (Ryoji Kanai) * don't process elf notes multiple times * allow -z to report empty compressed files * use calloc to initialize the ascii buffers (Jos van den Oever) 2006-06-08 11:11 Christos Zoulas <christos@zoulas.com> * QNX fixes (Mike Gorchak) * Add quad support. * FIFO checks (Dr. Werner Fink) * Linux ELF fixes (Dr. Werner Fink) * Magic format checks (Dr. Werner Fink) * Magic format function improvent (Karl Chen) 2006-05-03 11:11 Christos Zoulas <christos@zoulas.com> * Pick up some elf changes and some constant fixes from SUSE * Identify gnu tar vs. posix tar * When keep going, don't print spurious newlines (Radek Vokál) 2006-04-01 12:02 Christos Zoulas <christos@zoulas.com> * Use calloc instead of malloc (Mike Frysinger) * Fix configure script to detect wctypes.h (Mike Frysinger)
Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 7 19:46:06 2006 UTC (5 years, 7 months ago) by reed
Branch: MAIN
CVS Tags: pkgsrc-2006Q4-base,
pkgsrc-2006Q4
Changes since 1.4: +5 -5
lines
Diff to previous 1.4 (colored)
Update to 4.17. This is for PR 34337.
Recent changes include:
2006-03-02 16:06 Christos Zoulas <christos@zoulas.com>
* Print empty if the file is (Mike Frysinger)
* Don't try to read past the end of the buffer (Mike Frysinger)
* Sort magic entries by strength [experimental]
2005-11-29 13:26 Christos Zoulas <christos@zoulas.com>
* Use iswprint() to convert the output string.
(Bastien Nocera)
2005-10-31 8:54 Christos Zoulas <christos@zoulas.com>
* Fix regression where the core info was not completely processed
(Radek Vokál)
2005-10-20 11:15 Christos Zoulas <christos@zoulas.com>
* Middle Endian magic (Diomidis Spinellis)
2005-10-17 11:15 Christos Zoulas <christos@zoulas.com>
* Open with O_BINARY for CYGWIN (Corinna Vinschen)
* Don't close stdin (Arkadiusz Miskiewicz)
* Look for note sections in non executables.
2005-09-20 13:33 Christos Zoulas <christos@zoulas.com>
* Don't print SVR4 Style in core files multiple times
(Radek Vokál)
2005-08-27 04:09 Christos Zoulas <christos@zoulas.com>
* Cygwin changes Corinna Vinschen
2005-08-18 09:53 Christos Zoulas <christos@zoulas.com>
* Remove erroreous mention of /etc/magic in the file man page
This is gentoo bug 101639. (Mike Frysinger)
* Cross-compile support and detection (Mike Frysinger)
2005-08-12 10:17 Christos Zoulas <christos@zoulas.com>
* Add -h flag and dereference symlinks if POSIXLY_CORRECT
is set.
2005-07-29 13:57 Christos Zoulas <christos@zoulas.com>
* Avoid search and regex buffer overflows (Kelledin)
2005-07-12 11:48 Christos Zoulas <christos@zoulas.com>
* Provide stub implementations for {v,}nsprintf() for older
OS's that don't have them.
* Change mbstate_t autoconf detection macro from AC_MBSTATE_T
to AC_TYPE_MBSTATE_T.
2005-06-25 11:48 Christos Zoulas <christos@zoulas.com>
* Dynamically allocate the string buffers and make the
default read size 256K.
2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
* Dragonfly ELF note support
2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
* Avoid NULL pointer dereference in time conversion.
2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch>
* Add indirect magic offset support, and search mode.
Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 24 13:40:52 2005 UTC (7 years, 3 months ago) by agc
Branch: MAIN
CVS Tags: pkgsrc-2006Q3-base,
pkgsrc-2006Q3,
pkgsrc-2006Q2-base,
pkgsrc-2006Q2,
pkgsrc-2006Q1-base,
pkgsrc-2006Q1,
pkgsrc-2005Q4-base,
pkgsrc-2005Q4,
pkgsrc-2005Q3-base,
pkgsrc-2005Q3,
pkgsrc-2005Q2-base,
pkgsrc-2005Q2,
pkgsrc-2005Q1-base,
pkgsrc-2005Q1
Changes since 1.3: +2 -1
lines
Diff to previous 1.3 (colored)
Add RMD160 digests.
Revision 1.3 / (download) - annotate - [select for diffs], Fri Feb 18 19:39:26 2005 UTC (7 years, 3 months ago) by reed
Branch: MAIN
Changes since 1.2: +4 -4
lines
Diff to previous 1.2 (colored)
Update to 4.13.
I updated this because old version I was using had false-positive
with "Macintosh HFS data" -- file(1) saw a postscript file wrong
and broke some printing tasks. The distfile was no longer on MASTER_SITES
so updated. This fixed my Poscript problem.
Changes include:
2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz>
* src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
If a CRLF text file happens to have CR at offset HOWMANY - 1
(currently 0xffff), it should not be counted as CR line
terminator.
If a line has length exactly MAXLINELEN, it should not yet be
treated as a ``very long line'', as MAXLINELEN is ``longest sane
line length''.
With CRLF, the line length was not computed correctly, and even
lines of length MAXLINELEN - 1 were treated as ``very long''.
2004-12-07 14:15 Christos Zoulas <christos@zoulas.com>
* bzip2 needs a lot of input buffer space on some files
before it can begin uncompressing. This makes file -z
fail on some bz2 files. Fix it by giving it a copy of
the file descriptor to read as much as it wants if we
have access to it. <christos@zoulas.com>
2004-11-24 12:39 Christos Zoulas <christos@zoulas.com>
* Stack smash fix, and ELF more conservative reading.
Jakub Bogusz <qboosh@pld-linux.org>
2004-11-20 18:50 Christos Zoulas <christos@zoulas.com>
* New FreeBSD version parsing code:
Jon Noack <noackjr@alumni.rice.edu>
* Hackish support for ucs16 strings <christos@zoulas.com>
2004-11-13 03:07 Christos Zoulas <christos@zoulas.com>
* print the file name and line number in syntax errors.
2004 10-12 10:50 Christos Zoulas <christos@zoulas.com>
* Fix stack overwriting on 0 length strings: Tim Waugh
<twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
2004-09-27 11:30 Christos Zoulas <christos@zoulas.com>
* Remove 3rd and 4th copyright clause; approved by Ian Darwin.
* Fix small memory leaks; caught by: Tamas Sarlos
<stamas@csillag.ilab.sztaki.hu>
2004-07-24 16:33 Christos Zoulas <christos@zoulas.com>
* magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
* FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
* utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
* errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
2004-04-12 10:55 Christos Zoulas <christos@zoulas.com>
* make sure that magic formats match magic types during compilation
* fix broken sgi magic file
2004-04-06 20:36 Christos Zoulas <christos@zoulas.com>
* detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
* magic fixes
Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 22 13:45:31 2004 UTC (7 years, 11 months ago) by grant
Branch: MAIN
CVS Tags: pkgsrc-2004Q4-base,
pkgsrc-2004Q4,
pkgsrc-2004Q3-base,
pkgsrc-2004Q3
Changes since 1.1: +3 -3
lines
Diff to previous 1.1 (colored)
Updated file to 4.09: changes since 4.02: 2004-04-06 20:36 Christos Zoulas <christos@zoulas.com> * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> * magic fixes 2004-03-22 15:25 Christos Zoulas <christos@zoulas.com> * Lots of mime fixes (Joerg Ostertag) <ostertag@rechengilde.de> * FreeBSD ELF version handling (Edwin Groothuis) <edwin@mavetju.org> * correct cleanup in all cases; don't just close the file. (Christos Zoulas) <christos@zoulas.com> * add gettext message catalogue support (Michael Piefel) <piefel@debian.org> * better printout for unreadable files (Michael Piefel) <piefel@debian.org> * compensate for missing MAXPATHLEN (Michael Piefel) <piefel@debian.org> * add wide character string length computation (Michael Piefel) <piefel@debian.org> * Avoid infinite loops caused by bad elf alignments or name and description note sizes. Reported by (Mikael Magnusson) <mmikael@comhem.se> 2004-03-09 13:55 Christos Zoulas <christos@zoulas.com> * Fix possible memory leak on error and add missing regfree (Dmitry V. Levin) <ldv@altlinux.org> 2003-12-23 12:12 Christos Zoulas <christos@zoulas.com> * fix -k flag (Maciej W. Rozycki) 2003-11-18 14:10 Christos Zoulas <christos@zoulas.com> * Try to give us much info as possible on corrupt elf files. (Willy Tarreau) <willy@w.ods.org> * Updated python bindings (Brett Funderburg) <brettf@deepfile.com> 2003-11-11 15:03 Christos Zoulas <christos@zoulas.com> * Include file.h first, because it includes config.h breaks largefile test macros otherwise. (Paul Eggert <eggert@CS.UCLA.EDU> via Lars Hecking <lhecking@nmrc.ie>) 2003-10-14 21:39 Christos Zoulas <christos@zoulas.com> * Python bindings (Brett Funderburg) <brettf@deepfile.com> * Don't lookup past the end of the buffer (Chad Hanson) <chanson@tcs-sec.com> * Add MAGIC_ERROR and api on magic_errno() 2003-10-08 12:40 Christos Zoulas <christos@zoulas.com> * handle error conditions from compile as fatal (Antti Kantee) <pooka@netbsd.org> * handle magic filename parsing sanely * more magic fixes. * fix a memory leak (Illes Marton) <illes.marton@balabit.hu> * describe magic file handling (Bryan Henderson) <bryanh@giraffe-data.com> 2003-09-12 15:09 Christos Zoulas <christos@zoulas.com> * update magic files. * remove largefile support from file.h; it breaks things on most OS's 2003-08-10 10:25 Christos Zoulas <christos@zoulas.com> * fix unmapping'ing of mmaped files. 2003-07-10 12:03 Christos Zoulas <christos@zoulas.com> * don't exit with -1 on error; always exit 1 (Marty Leisner) * restore utimes code. 2003-06-10 17:03 Christos Zoulas <christos@zoulas.com> * make sure we don't access uninitialized memory. * pass lint * #ifdef __cplusplus in magic.h 2003-05-25 19:23 Christos Zoulas <christos@zoulas.com> * rename cvs magic file to revision to deal with case insensitive filesystems. 2003-05-23 17:03 Christos Zoulas <christos@zoulas.com> * documentation fixes from Michael Piefel <piefel@debian.org> * magic fixes (various) * revert basename magic in .mgc name determination * buffer protection in uncompress, signness issues, close files Maciej W. Rozycki <macro@ds2.pg.gda.pl 2003-04-21 20:12 Christos Zoulas <christos@zoulas.com> * fix zsh magic 2003-04-04 16:59 Christos Zoulas <christos@zoulas.com> * fix operand sort order in string. 2003-04-02 17:30 Christos Zoulas <christos@zoulas.com> * cleanup namespace in magic.h
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Apr 13 10:24:27 2003 UTC (9 years, 1 month ago) by cjep
Branch: TNF
CVS Tags: pkgsrc-base,
pkgsrc-2004Q2-base,
pkgsrc-2004Q2,
pkgsrc-2004Q1-base,
pkgsrc-2004Q1,
pkgsrc-2003Q4-base,
pkgsrc-2003Q4
Changes since 1.1: +0 -0
lines
Diff to previous 1.1 (colored)
Initial import of file 4.02 into the NetBSD packages collection as sysutils/file. File is a file classification program. This version is the standard "file" command for Linux, *BSD, and other systems. This is Ian Darwin's file(1) command. It is maintained by Christos Zoulas. Package supplied by Jeremy C. Reed in PR#20774 and also in pkgsrc-wip. Thanks Jeremy.
Revision 1.1 / (download) - annotate - [select for diffs], Sun Apr 13 10:24:27 2003 UTC (9 years, 1 month ago) by cjep
Branch: MAIN
Initial revision