summaryrefslogtreecommitdiff
path: root/sysutils/file
AgeCommit message (Collapse)AuthorFilesLines
2022-08-16file: update to 5.42.wiz2-6/+6
2022-06-10 9:40 Christos Zoulas <christos@zoulas.com> * release 5.42 2022-05-31 14:50 Christos Zoulas <christos@zoulas.com> * PR/348: add missing cases to prevent file from aborting on random magic files. 2022-05-27 21:05 Christos Zoulas <christos@zoulas.com> * PR/351: octalify filenames when not raw before printing. 2022-04-18 17:51 Christos Zoulas <christos@zoulas.com> * fix regex cacheing bug (Dirk Mueller) * merge file_regcomp and file_regerror() to simplify the code and reduce memory requirements for storing regexes (Dirk Mueller) 2022-03-19 12:56 Christos Zoulas <christos@zoulas.com> * cache regex (Dirk Mueller) * detect filesystem full by flushing output (Dirk Mueller) 2021-11-19 12:36 Christos Zoulas <christos@zoulas.com> * implement running decompressor programs using posix_spawnp(2) instead of vfork(2) 2021-10-24 11:51 Christos Zoulas <christos@zoulas.com> * Add support for msdos dates and times 2021-10-20 9:55 Christos Zoulas <christos@zoulas.com> * use the system byte swapping functions if available (Werner Fink) 2021-10-18 11:57 Christos Zoulas <christos@zoulas.com> * release 5.41 2021-09-23 03:51 Christos Zoulas <christos@zoulas.com> * Avinash Sonawane: Fix tzname detection 2021-09-03 09:17 Christos Zoulas <christos@zoulas.com> * Fix relationship tests with "search" magic, don't short circuit logic 2021-07-13 01:06 Christos Zoulas <christos@zoulas.com> * Fix memory leak in compile mode 2021-07-01 03:51 Christos Zoulas <christos@zoulas.com> * PR/272: kiefermat: Only set returnval = 1 when we printed something (in all cases print or !print). This simplifies the logic and fixes the issue in the PR with -k and --mime-type there was no continuation printed before the default case. 2021-06-30 13:07 Christos Zoulas <christos@zoulas.com> * PR/270: Don't translate unprintable characters in %s magic formats when -r * PR/269: Avoid undefined behavior with clang (adding offset to NULL) 2021-05-09 18:38 Christos Zoulas <christos@zoulas.com> * Add a new flag (f) that requires that the match is a full word, not a partial word match. * Add varint types (unused) 2021-04-19 17:17 Christos Zoulas <christos@zoulas.com> * PR/256: mutableVoid: If the file is less than 3 bytes, use the file length to determine type * PR/259: aleksandr.v.novichkov: mime printing through indirect magic is not taken into account, use match directly so that it does. 2021-04-04 17:02 Christos Zoulas <christos@zoulas.com> * count the total bytes found not the total byte positions in order to determine encoding (Anatol Belski)
2022-01-29Also set DYLD_LIBRARY_PATH=. (in addition to LD_PRELOAD) when generatingschmonz2-5/+5
magic. Fixes build on macOS (Monterey and Snow Leopard tested) when file is not already installed.
2021-12-27Adjust previous use of LD_PRELOAD to fix Solaris 11 build, hoping it'llschmonz4-5/+26
fix the SmartOS bulk build (which gave similar errors, but which I couldn't reproduce on my SmartOS or Tribblix systems). Does not break: - macOS 12.1 - NetBSD 9.2 and -current - OpenBSD 7.0 - FreeBSD 13.0 - Tribblix m25.1 - CentOS 7 and 8 - Debian 9, 10, and 11 - Devuan 4 - Ubuntu 14, 16, 18, and 20 - Void
2021-12-18On some Linux systems with a sufficiently old sysutils/file installed,schmonz2-1/+17
we get this error, followed by a bunch of warnings attempting to compile magic anyway: "lt-file: Compiled magic version [540] does not match with shared library magic version [538]" Instead of using whatever libmagic might already be installed, use the just-built libmagic. (There's probably a less hacky way.)
2021-10-26sysutils: Replace RMD160 checksums with BLAKE2s checksumsnia1-2/+2
All checksums have been double-checked against existing RMD160 and SHA512 hashes
2021-10-07sysutils: Remove SHA1 hashes for distfilesnia1-2/+1
2021-04-08file: update to 5.40nia2-7/+7
2021-03-30 20:21 Christos Zoulas <christos@zoulas.com> * release 5.40 2021-02-05 16:31 Christos Zoulas <christos@zoulas.com> * PR/234: Add limit to the number of bytes to scan for encoding * PR/230: Fix /T (trim flag) for regex 2021-02-01 12:31 Christos Zoulas <christos@zoulas.com> * PR/77: Trim trailing separator. 2020-12-17 15:44 Christos Zoulas <christos@zoulas.com> * PR/211: Convert system read errors from corrupt ELF files into human readable error messages 2020-12-08 16:24 Christos Zoulas <christos@zoulas.com> * fix multithreaded decompression file descriptor issue by using close-on-exec (Denys Vlasenko) 2020-06-27 11:58 Christos Zoulas <christos@zoulas.com> * Exclude surrogate pairs from utf-8 detection (Michael Liu) 2020-06-25 12:53 Christos Zoulas <christos@zoulas.com> * Include # to the list of ignored format chars (Werner Fink)
2020-11-23file: Update to 5.39nia3-9/+11
2020-06-14 20:02 Christos Zoulas <christos@zoulas.com> * release 5.39 2020-06-07 20:00 Christos Zoulas <christos@zoulas.com> * Remove unused subtype_mime (Steve Grubb) * Remove unused check in okstat (Steve Grubb) * Fix mime-type in elf binaries by making sure $x is set * Fix indirect negative offsets broken by OFFNEGATIVE * Fix GUID equality check * PR/165: Handle empty array and strings in JSON * PR/162: Add --exclude-quiet 2020-06-06 15:33 Christos Zoulas <christos@zoulas.com> * Fix memory leak in ascmagic (Steve Grubb) 2020-06-04 00:21 Christos Zoulas <christos@zoulas.com> * Fix string comparison length with ignore whitespace 2020-05-31 00:11 Christos Zoulas <christos@zoulas.com> * Fix mingwin 64 compilation 2020-05-30 23:56 Christos Zoulas <christos@zoulas.com> * PR/159: whitelist getpid needed for file_pipe2file() 2020-05-09 18:57 Christos Zoulas <christos@zoulas.com> * Indicate negative offsets with a flag OFFNEGATIVE so that -0 works. * Introduce "offset" magic type that can be used to detect the file size, and bail on short files. * document DER better in the magic man page. 2020-03-11 21:53 Christos Zoulas <christos@zoulas.com> * fix memory leaks (SonarQube) 2020-03-08 21:33 Christos Zoulas <christos@zoulas.com> * fix memory leaks (SonarQube) * rewrite confusing loops (SonarQube) * fix bogus test (SonarQube) * pass a sized buffer to file_fmttime() (SonarQube) * fix memory leaks (SonarQube) 2020-02-20 15:50 Christos Zoulas <christos@zoulas.com> * Don't allow * in printf formats, or the code itself (Christoph Biedl) * Introduce a printf output size checker to avoid DoS attacks 2020-02-17 17:22 Christos Zoulas <christos@zoulas.com> * Avoid memory leak on error (oss-fuzz) * Check length of string on DER before derefercing and add new types * Add missing DER string (oss-fuzz) 2020-02-16 20:45 Christos Zoulas <christos@zoulas.com> * Add missing DER types, and debugging 2020-02-13 13:10 Christos Zoulas <christos@zoulas.com> * PR/140: Avoid abort with hand-crafted magic file (gockelhahn) * PR/139 Avoid DoS in printf with hand-crafted magic file (gockelhahn) * PR/138: Avoid crash with hand-crafted magic file (gockelhahn) 2020-02-12 17:30 Christos Zoulas <christos@zoulas.com> * PR/136: Fix static build by adding a libmagic.pc (Fabrice Fontaine) 2019-12-24 14:16 Christos Zoulas <christos@zoulas.com> * add guid support
2020-01-26all: migrate homepages from http to httpsrillig1-2/+2
pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually.
2019-12-31(sysutils/file) Updated to 5.38mef3-14/+13
2019-12-16 21:11 Christos Zoulas <christos@zoulas.com> * release 5.38 2019-12-15 22:13 Christos Zoulas <christos@zoulas.com> Document changes since the previous release: - Always accept -S (no sandbox) even if we don't support sandboxing - More syscalls elided for sandboxiing - For ELF dynamic means having an interpreter not just PT_DYNAMIC - Check for large ELF session header offset - When saving and restoring a locale, keep the locale name in our own storage. - Add a flag to disable CSV file detection. - Don't pass NULL/0 to memset to appease sanitizers. - Avoid spurious prints when looks for extensions or apple strings in fsmagic. - Add builtin decompressors for xz and and bzip. - Add a limit for the number of CDF elements. - More checks for overflow in CDF.
2019-11-04sysutils: align variable assignmentsrillig1-4/+4
pkglint -Wall -F --only aligned --only indent -r Manually excluded consolekit and dc-tools since pkglint didn't get the formatting correct.
2019-09-07file: Update to 5.37nia3-23/+7
2019-05-09 22:27 Christos Zoulas <christos@zoulas.com> * Make sure that continuation separators are printed with -k within softmagic 2019-05-06 22:27 Christos Zoulas <christos@zoulas.com> * Change SIGPIPE saving and restoring during compression to use sigaction(2) instead of signal(3) and cache it. (Denys Vlasenko) * Cache stat(2) calls more to reduce number of calls (Denys Vlasenko) 2019-05-06 17:25 Christos Zoulas <christos@zoulas.com> * PR/77: Handle --mime-type and -k correctly. 2019-05-03 15:26 Christos Zoulas <christos@zoulas.com> * Switch decompression code to use vfork() because tools like rpmdiff and rpmbuild call libmagic with large process footprints (Denys Vlasenko) 2019-04-07 14:05 Christos Zoulas <christos@zoulas.com> * PR/75: --enable-zlib, did not work. 2019-02-27 11:54 Christos Zoulas <christos@zoulas.com> * Improve regex efficiency (Michael Schroeder) by: 1. Prefixing regex searches with regular search for keywords where possible 2. Using memmem(3) where available
2019-03-16file: Update to 5.36leot8-271/+24
pkgsrc changes: - Remove patches no longer needed (security backport of upstream changes) Changes: 5.36 ---- * release 5.36 * Fix cast to use cast macros * Add UCS-32 builtin detection (PR/61) reported by tmc * Fix stack read (PR/62) and write (PR/64) stack overflows reported by spinpx
2019-03-16file: fix security issues, bump revision.bsiegert6-7/+229
Fixes CVE-2019-8906, CVE-2019-8904 (not sure about CVE-2019-8905, CVE-2019-8907). Patch by Matthias Ferdinand via email to pkgsrc-users.
2018-06-30Patch file for CVE-2018-10360.bsiegert3-3/+28
Patch from Matthias Ferdinand on pkgsrc-users. The do_core_note function in readelf.c in libmagic.a in file 5.33 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted ELF file.
2018-01-07Fix indentation in buildlink3.mk files.rillig1-2/+2
The actual fix as been done by "pkglint -F */*/buildlink3.mk", and was reviewed manually. There are some .include lines that still are indented with zero spaces although the surrounding .if is indented. This is existing practice.
2017-12-12Fix functionality under NetBSD-current. Taken from NetBSD srcryoon3-2/+20
Bump PKGREVISION
2017-09-04Updated file to 5.32.wiz3-29/+9
* release 5.32 * Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski) * Fix always true condition (Thomas Jarosch) * pickier parsing of numeric values in magic files. * PR/615 add magic_getflags() * release 5.31 * remove trailing spaces from magic files * refactor is_tar * better bounds checks for cdf * release 5.30 * If we exceeded the offset in a search return no match (Christoph Biedl) * Be more lenient on corrupt CDF files (Christoph Biedl) * pacify ubsan sign extension (oss-fuzz/524) * off by one in cdf parsing (PR/593) * report debugging sections in elf (PR/591) * Allow @@@ in extensions * Add missing overflow check in der magic (Jonas Wagner) * release 5.29 * der getlength overflow (Jonas Wagner) * multiple magic file load failure (Christoph Biedl) * CDF parsing improvements (Guy Helmer) * Add support for signed indirect offsets * cat /dev/null | file - should print empty (Christoph Biedl) * Bump string size from 64 to 96. * PR/556: Fix separators on annotations.
2016-06-16Make note of upstream bug reportfhajny2-3/+5
2016-06-16Update sysutils/file to 5.28.fhajny5-31/+30
Fix unbalanced regex (fixes build with some sed flavors). file 5.28 * PR/555: Avoid overflow for offset > nbytes * PR/550: Segv on DER parsing: - use the correct variable for length - set offset to 0 on failure.
2016-06-05Updated sysutils/file to 5.27mef3-16/+17
----------------------------- 2016-05-13 12:00 Christos Zoulas <christos@zoulas.com> * release 5.27 2016-04-18 9:35 Christos Zoulas <christos@zoulas.com> * Errors comparing DER entries or computing offsets are just indications of malformed non-DER files. Don't print them. * Offset comparison was off-by-one. * Fix compression code (Werner Fink) * Put new bytes constant in the right file (not the generated one)
2016-03-05Update file to 5.25.bsiegert3-29/+7
2015-09-16 9:50 Christos Zoulas <christos@zoulas.com> * release 5.25 2015-09-11 13:25 Christos Zoulas <christos@zoulas.com> * add a limit to the length of regex searches 2015-09-08 9:50 Christos Zoulas <christos@zoulas.com> * fix problems with --parameter (Christoph Biedl) 2015-07-11 10:35 Christos Zoulas <christos@zoulas.com> * Windows fixes PR#466 (Jason Hood) 2015-07-09 10:35 Christos Zoulas <christos@zoulas.com> * release 5.24 2015-06-11 8:52 Christos Zoulas <christos@zoulas.com> * redo long option encoding to fix off-by-one in 5.23 2015-06-10 13:50 Christos Zoulas <christos@zoulas.com> * release 5.23 2015-06-09 16:10 Christos Zoulas <christos@zoulas.com> * Fix issue with regex range for magic with offset * Always return true from mget with USE (success to mget not match indication). Fixes mime evaluation after USE magic * PR#459: Don't insert magic entries to the list if there are parsing errors for them. 2015-06-03 16:00 Christos Zoulas <christos@zoulas.com> * PR#455: Add utf-7 encoding 2015-06-03 14:30 Christos Zoulas <christos@zoulas.com> * PR#455: Implement -Z, look inside, but don't report on compression * PR#454: Fix allocation error on bad magic. 2015-05-29 10:30 Christos Zoulas <christos@zoulas.com> * handle MAGIC_CONTINUE everywhere, not just in softmagic 2015-05-21 14:30 Christos Zoulas <christos@zoulas.com> * don't print descriptions for NAME types when mime. 2015-04-09 15:59 Christos Zoulas <christos@zoulas.com> * Add --extension to list the known extensions for this file type Idea by Andrew J Roazen 2015-02-14 12:23 Christos Zoulas <christos@zoulas.com> * Bump file search buffer size to 1M. 2015-01-09 14:35 Christos Zoulas <christos@zoulas.com> * Fix multiple issues with date formats reported by Christoph Biedl: - T_LOCAL meaning was reversed - Arithmetic did not work Also stop adjusting daylight savings for gmt printing. 2015-01-05 13:00 Christos Zoulas <christos@zoulas.com> * PR#411: Fix memory corruption from corrupt cdf file.
2016-02-26Use OPSYSVARS.jperkin1-4/+2
2015-11-04Add SHA512 digests for distfiles for sysutils categoryagc1-1/+2
Problems found with existing digests: Package memconf distfile memconf-2.16/memconf.gz b6f4b736cac388dddc5070670351cf7262aba048 [recorded] 95748686a5ad8144232f4d4abc9bf052721a196f [calculated] Problems found locating distfiles: Package dc-tools: missing distfile dc-tools/abs0-dc-burn-netbsd-1.5-0-gae55ec9 Package ipw-firmware: missing distfile ipw2100-fw-1.2.tgz Package iwi-firmware: missing distfile ipw2200-fw-2.3.tgz Package nvnet: missing distfile nvnet-netbsd-src-20050620.tgz Package syslog-ng: missing distfile syslog-ng-3.7.2.tar.gz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
2015-05-23SECURITY: add patch for denial-of-service vulnerability. From Matthiasbsiegert3-2/+24
Ferdinand via pkgsrc-users. Bump PKGREVISION.
2015-03-27Patches to fix compilation on SunOS. From Richard PALO in private mail.bsiegert3-1/+32
2015-03-22SECURITY: Update file to 5.22.bsiegert8-133/+6
Bugs fixed: * restructure elf note printing to avoid repeated messages * add note limit, suggested by Alexander Cherepanov * Bail out on partial pread()'s (Alexander Cherepanov) * Fix incorrect bounds check in file_printable (Alexander Cherepanov) * PR/405: ignore SIGPIPE from uncompress programs * change printable -> file_printable and use it in more places for safety * Fix for CVE-2014-9620.
2014-12-15The "rename" rule is a published synonym for the "opt" transform rule, howeverjperkin1-2/+2
only the latter is supported by cwrappers. Change them all to "opt" rules for consistency and to gain compatibility with cwrappers.
2014-11-07Some OSes have locale_t in xlocale.h (patch from upstream).schmonz6-1/+112
2014-10-26Update to 5.20ryoon2-6/+6
* Fix CVE-2014-3710 Changelog: 2014-10-10 15:01 Christos Zoulas <christos@zoulas.com> * release 5.20 2014-08-17 10:01 Christos Zoulas <christos@zoulas.com> * recognize encrypted CDF documents 2014-08-04 9:18 Christos Zoulas <christos@zoulas.com> * add magic_load_buffers from Brooks Davis 2014-07-24 16:40 Christos Zoulas <christos@zoulas.com> * add thumbs.db support
2014-07-13Update to 5.19ryoon2-6/+6
* Fix CVE-2014-3478, CVE-2014-3479, CVE-2014-3480, CVE-2014-3487 Changelog: 2014-06-12 12:28 Christos Zoulas <christos@zoulas.com> * release 5.19 2014-06-09 9:04 Christos Zoulas <christos@zoulas.com> * Misc buffer overruns and missing buffer size tests in cdf parsing (Francisco Alonso, Jan Kaluza) 2014-06-02 14:50 Christos Zoulas <christos@zoulas.com> * Enforce limit of 8K on regex searches that have no limits * Allow the l modifier for regex to mean line count. Default to byte count. If line count is specified, assume a max of 80 characters per line to limit the byte count. * Don't allow conversions to be used for dates, allowing the mask field to be used as an offset. 2014-05-30 12:51 Christos Zoulas <christos@zoulas.com> * Make the range operator limit the length of the regex search. 2014-05-14 19:23 Christos Zoulas <christos@zoulas.com> * 347: Windows fixes * 352: Hangul word processor recognition * 354: Encoding irregularities in text files 2014-05-06 6:12 Christos Zoulas <christos@zoulas.com> * Fix uninitialized title in CDF files (Jan Kaluza) 2014-05-04 14:55 Christos Zoulas <christos@zoulas.com> * 351: Fix compilation of empty files 2014-04-30 17:39 Christos Zoulas <christos@zoulas.com> * Fix integer formats: We don't specify 'l' or 'h' and 'hh' specifiers anymore, only 'll' for quads and nothing for the rest. This is so that magic writing is simpler. 2014-04-01 15:25 Christos Zoulas <christos@zoulas.com> * 341: Jan Kaluza, fix memory leak * 342: Jan Kaluza, fix out of bounds read 2014-03-28 15:25 Christos Zoulas <christos@zoulas.com> * Fix issue with long formats not matching fmtcheck
2014-04-04Update to 5.18ryoon2-6/+6
Changelog: 2014-03-26 11:25 Christos Zoulas <christos@zoulas.com> * release 5.18 2014-03-15 17:45 Christos Zoulas <christos@zoulas.com> * add fmtcheck(3) for those who don't have it 2014-03-14 15:12 Christos Zoulas <christos@zoulas.com> * prevent mime entries from being attached to magic entries with no descriptions * adjust magic strength for regex type * remove superfluous ascmagic with encoding test 2014-03-06 12:01 Christos Zoulas <christos@zoulas.com> * fix regression fix echo -ne "\012\013\014" | file -i - which printed "binary" instead of "application/octet-stream" * add size_t overflow check for magic file size 2014-02-27 16:01 Christos Zoulas <christos@zoulas.com> * experimental support for matching with CFD CLSID 2014-02-18 13:04 Kimmo Suominen (kimmo@suominen.com) * Cache old LC_CTYPE locale before setting it to "C", so we can use it to restore LC_CTYPE instead of asking setlocale() to scan the environment variables.
2014-03-12Export getline. Needed for build on NetBSD-5.wiz2-1/+17
Reported by Matthias Ferdinand <mf+ml.pkgsrc-users@netzwerkagentursaarland.de> on pkgsrc-users.
2014-03-12Update to 5.17, based on patch provided by Matthiaswiz3-12/+12
<mf+ml.pkgsrc-users@netzwerkagentursaarland.de> on pkgsrc-users. Changes: 2014-02-12 18:21 Christos Zoulas <christos@zoulas.com> * Count recursion levels through indirect magic 2014-02-11 10:40 Christos Zoulas <christos@zoulas.com> * Prevent infinite recursion on files with indirect offsets of 0 2014-01-30 21:00 Christos Zoulas <christos@zoulas.com> * Add -E flag that makes file print filesystem errors to stderr and exit. 2014-01-08 17:20 Christos Zoulas <christos@zoulas.com> * mime printing could print results from multiple magic entries if there were multiple matches. * in some cases overflow was not detected when computing offsets in softmagic. 2013-12-05 12:00 Christos Zoulas <christos@zoulas.com> * use strcasestr() to for cdf strings * reset to the "C" locale while doing regex operations, or case insensitive comparisons; this is provisional 2013-11-19 20:10 Christos Zoulas <christos@zoulas.com> * always leave magic file loaded, don't unload for magic_check, etc. * fix default encoding to binary instead of unknown which broke recently * handle empty and one byte files, less specially so that --mime-encoding does not break completely. ` 2013-11-06 14:40 Christos Zoulas <christos@zoulas.com> * fix erroneous non-zero exit code from non-existant file and message 2013-10-29 14:25 Christos Zoulas <christos@zoulas.com> * add CDF MSI file detection (Guy Helmer) 2013-09-03 11:56 Christos Zoulas <christos@zoulas.com> * Don't mix errors and regular output if there was an error * in magic_descriptor() don't close the file and try to restore its position 2013-05-30 17:25 Christos Zoulas <christos@zoulas.com> * Don't treat magic as an error if offset was past EOF (Christoph Biedl) 2013-05-28 17:25 Christos Zoulas <christos@zoulas.com> * Fix spacing issues in softmagic and elf (Jan Kaluza) 2013-05-02 18:00 Christos Zoulas <christos@zoulas.com> * Fix segmentation fault with multiple magic_load commands. 2013-04-22 11:20 Christos Zoulas <christos@zoulas.com> * The way "default" was implemented was not very useful because the "if something was printed at that level" was not easily controlled by the user, and the format was bound to a string which is too restrictive. Add a "clear" for that level keyword and make "default" void. This way one can do: >>13 clear x >>13 lelong 1 foo >>13 lelong 2 bar >>13 default x >>>13 lelong x unknown %x 2013-03-25 13:20 Christos Zoulas <christos@zoulas.com> * disallow strength setting in "name" entries 2013-03-06 21:24 Christos Zoulas <christos@zoulas.com> * fix recursive magic separator printing 2013-02-26 19:28 Christos Zoulas <christos@zoulas.com> * limit recursion level for mget * fix pread() related breakage in cdf * handle offsets properly in recursive "use" 2013-02-18 10:39 Christos Zoulas <christos@zoulas.com> * add elf reading of debug info to determine if file is stripped (Jan Kaluza) * use pread() 2013-01-25 18:05 Christos Zoulas <christos@zoulas.com> * change mime description size from 64 to 80 to accommodate OOXML. 2013-01-11 14:50 Christos Zoulas <christos@zoulas.com> * Warn about inconsistent continuation levels. * Change fsmagic to add a space after it prints. 2013-01-10 21:00 Christos Zoulas <christos@zoulas.com> * Make getline public so that file can link against it. Perhaps it is better to rename it, or hide it differently. Fixes builds on platforms that do not provide it. 2013-01-07 16:30 Christos Zoulas <christos@zoulas.com> * Add SuS d{,1,2,4,8}, u{,1,2,4,8} and document what long, int, short, etc is (Guy Harris) 2013-01-06 11:20 Christos Zoulas <christos@zoulas.com> * add magic_version function and constant * Redo memory allocation and de-allocation. (prevents double frees on non mmap platforms) * Fix bug with name/use having to do with passing found state from the parent to the child and back. 2012-12-19 8:47 Christos Zoulas <christos@zoulas.com> * Only print elf capabilities for archs we know (Jan Kaluza) 2012-10-30 19:14 Christos Zoulas <christos@zoulas.com> * Add "name" and "use" file types in order to look inside mach-o files. 2012-09-06 10:40 Christos Zoulas <christos@zoulas.com> * make --version exit 0 (Matthew Schultz) * add string/T (Jan Kaluza) 2012-08-09 2:15 Christos Zoulas <christos@zoulas.com> * add z and t modifiers for our own vasprintf * search for $HOME/.magic.mgc if it is there first * fix reads from a pipe, and preserve errno 2012-05-15 13:12 Christos Zoulas <christos@zoulas.com> * use ctime_r, asctime_r 2012-04-06 17:18 Christos Zoulas <christos@zoulas.com> * Fixes for indirect offsets to handle apple disk formats 2012-04-03 18:26 Christos Zoulas <christos@zoulas.com> * Add windows date field types * More info for windows shortcuts (incomplete)
2013-11-23Use find-headers instead of find-files to detect builtin header files.obache1-4/+5
2012-10-23Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.asau1-3/+1
2012-07-11Update DESCR (based on homepage). From Bug Hunting.wiz1-3/+4
2012-07-11Fill in HOMEPAGE. From Bug Hunting.wiz1-2/+2
2012-03-30Update file from 5.03 to 5.11.taca6-85/+12
Changes are too may to write here but includes security fix CVE-2012-1571. Add LICENSE, too.
2012-01-23Add a missing argument to -width. Bump revision.joerg3-3/+17
2011-03-18remove dead mirror.zafer1-3/+2
2009-12-30Avoid errors on gcc2abs1-1/+5
2009-05-21pkgsrc changes:sno5-15/+43
- 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.
2009-03-21Adding a patch to allow compiling with gcc incompatible compilerssno3-2/+37
and enabling LINUX_COMPAT on AIX (file-5.00 requires it, because it allocates 0 bytes) Oked by he@
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-14/+6
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2009-03-10Update from version 4.26 to 5.00.he3-12/+14
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.
2009-03-09Look for a file binary in /bin or /usr/bin, instead of relying on PATH.cube1-3/+10
After the barrier, the builtin.mk file is parsed with a PATH that includes LOCALBASE in front, which gives wrong results if file is installed in LOCALBASE.
2009-01-25Rename -Wextra with -W if gcc-{2,3}, workaround of PR 40123.obache1-1/+9
2009-01-25* let to use pkgsrc's libtoolobache1-1/+5
* define test target.
2008-10-29PR/39596: Jwens Rehsack: Update to file-4.26 (4.21 is gone) and add built-inchristos6-23/+29
version detection.