Commit Graph

110 Commits

Author SHA1 Message Date
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
apb 436bad5beb Rewrite the code that tried to canonicalise a path. Fixes a problem
in which "/wherever/src.2/../tools" was incorrectly changed to
"/wherever/src./tools" instead of the desired "/wherever/tools".

It's not clear to me that this script has any business trying to do this
sort of rewriting (and there's no guarantee that "/wherever/foo/.." and
"/wherever" both refer to the same place), but at least the new code
tries to be more careful than the old code.
2008-04-20 12:57:40 +00:00
ragge a24df7ca50 Include sys/param.h before file.h, to avoid redefinition of MIN. 2008-03-29 09:40:41 +00:00
pooka 86146f9e2e put LP64 SIZE_T_MAX on a diet: 17 f's is too much, trim it down to 16 2007-06-14 19:26:17 +00:00
pooka 549f6b16d1 Make this match the distributing by removing some extra goo that was
added a few years back when battling AM_MAINTAINER_MODE and has been
lugged around ever since.

from adrianp
2007-06-14 19:10:54 +00:00
pooka 9afe6367b3 crunch cornflakes 2007-06-07 11:32:44 +00:00
pooka 40ad27db84 file 4.21. bugfixes 2007-06-07 11:24:27 +00:00
christos 67f0e23f0f coverity CID 4418: Don't call strlen() with NULL. 2007-05-16 20:53:49 +00:00
pooka 000760c6d5 make print format specifiers match types printed 2007-03-04 21:50:43 +00:00
pooka 7a41045ba4 squelch gcc warnings 2007-03-04 15:25:10 +00:00
pooka 17dbe768ca apply conflict therapy for 4.20 import 2007-03-04 15:22:07 +00:00
pooka 67e9db49c9 file 4.20, contains fixes to the magic parser, new syntax and a
buffer overflow fix
2007-03-04 14:54:42 +00:00
christos 7b1864c5ec fix byte-swapping code. 2006-12-11 22:05:38 +00:00
martin 9013d7c51c Remove a strange #if that broke libmagic for most 64 bit archs.
OK'd by christos.
2006-11-14 14:12:24 +00:00
pooka 1231a9a93e renamed to bflt in upstream
keen-eyed source-changes reader was Jed Davis
2006-11-03 10:10:39 +00:00
dogcow 3429d8a242 Sprinkle llx -> PRIx64 around; fixes compilation on 64 bit platforms. 2006-11-01 00:33:40 +00:00
pooka 91e9593f57 file 4.18 last-minute conflix 2006-10-31 21:50:54 +00:00
pooka 26e338dcb4 readd winzip 2006-10-31 21:47:24 +00:00
pooka 2a4995fe7b this is file 4.18 already, bump patchlevel 2006-10-31 21:39:08 +00:00
pooka 74d6dfb485 errno is in 2 2006-10-31 21:17:15 +00:00
pooka 910040d09f welcome to file 4.18. have a nice day. 2006-10-31 21:16:23 +00:00
pooka 0968f96e37 file 4.18
changes since 4.16: bugfixes, magic improvements, other minor improvements
2006-10-31 20:34:42 +00:00
christos 2933708c6a remove 3d magic. 2006-10-20 15:54:45 +00:00
wiz d72654d9e5 Fix spacing issue, reported by anonymous. 2006-10-19 20:28:45 +00:00
thorpej 5da5f197c5 Use "unsigned int" rather than "u_int" to be consistent with the rest
of file(1).
2006-08-20 19:49:31 +00:00
christos f503e58dd8 PR/33723: Arthur Townsend: file command doesn't show 'executable' for
statically linked sun3 exec
2006-06-13 22:20:20 +00:00
christos f5b7b11e49 Coverity CID 346: Double free. 2006-03-18 04:41:57 +00:00
christos a7e5a4a743 Coverity CID 347: remove dead code. 2006-03-18 04:39:50 +00:00
pooka f8ed783b2b some new signatures provided by Sergey Svishchev in private email 2006-02-13 22:57:55 +00:00
grant 999434556e add magic for rzip archives. 2005-12-07 03:20:45 +00:00
christos 090e33a95c reverting to the previous version of file 4.16, not 4.15. 2005-10-21 16:01:16 +00:00
christos 5e183c30fc use strlen properly. 2005-10-17 19:07:43 +00:00
christos c3f8b2f036 add more void casts. 2005-10-17 18:51:40 +00:00
christos 6af7fa0a20 revert previous 2005-10-17 18:49:54 +00:00
christos 0180aa059f Fix lint issues. 2005-10-17 18:34:47 +00:00
pooka 4a4afdeb8b fix a few signed/unsigned lint warnings 2005-10-17 18:13:04 +00:00
pooka 5c9948c400 fix "emulated" {v,}snprintf to return real values
(which really aren't used on NetBSD at all)
2005-10-17 18:03:01 +00:00
pooka 61f5a53c25 con conflicts into going away 2005-10-17 17:59:59 +00:00
pooka 0c2bfb7f3f file 4.16
Changes since 4.13:
* DragonFly ELF note support
* read buffer dynamically allocated
* Add -h flag and dereference symlinks if POSIXLY_CORRECT
* Avoid search and regex buffer overflows
* cross-compilation fixes
* don't close stdin in the library.
* search for elf notes in shared libraries too.

Now with more magic than ever before!
2005-10-17 17:47:49 +00:00
christos 8e3cd7a471 PR/29682: sigsegv: /usr/bin/file does not seem to understand some fields
of an ELF binary. Someone ate my !
2005-03-25 18:07:09 +00:00
pooka fcb550ad2b Make building a bit more automatic by borrowing the rest of the
generated auto-payload from the vendor branch.  Now it works.
(and no, this has of course nothing to do with the version 4.*13*,
there are greater powers at play)
2005-02-21 15:25:57 +00:00
pooka ef5d11d8e1 import python also + nuke one extra linefeed when adding RCSId's 2005-02-21 15:25:56 +00:00
pooka 2fb3e4a058 Make building a bit more automatic by borrowing the rest of the
generated auto-payload from the vendor branch.  Now it works.
(and no, this has of course nothing to do with the version 4.*13*,
there are greater powers at play)
2005-02-21 15:25:56 +00:00
pooka 373a872a16 autoconf-stuff wants the python-dir when building tools/file, so
it's just easier to import this small amount of extra payload than
to attempt a war on autotools.
2005-02-21 15:16:06 +00:00
pooka 5b40621389 conflicts 2005-02-21 15:00:04 +00:00
pooka dfba91ada0 file 4.13
Just the usual bugfixes and magic additions, nothing major.
2005-02-21 14:32:55 +00:00
pooka 47d5603068 don't build magic and doc in toolbuild => makes build work again 2004-12-14 16:56:56 +00:00
pooka 0127e87a6e regen with AM_MAINTAINER_MODE enabled to get rid of autoconfusion
rebuild mania
2004-12-14 16:08:01 +00:00
pooka 0e5822b090 seems like AM_MAINTAINER_MODE was disabled for this release;
re-enable it to avoid ./configure rebuild hell
2004-12-14 15:56:10 +00:00
pooka 8d312437e8 wage holy war on autoconf to attempt to make the toolbuild work
After receiving the magic 10-line incantation from Christos for
re-building the autoconf stuff, attempt to do so.  This might fix
the problem, or might not.  That is why this stuff is so fun.
2004-12-13 23:57:44 +00:00