Skip to content

Commit

Permalink
Vendor import of file 5.45.
Browse files Browse the repository at this point in the history
  • Loading branch information
delphij committed Sep 10, 2023
1 parent 5d5531f commit 72d4668
Show file tree
Hide file tree
Showing 233 changed files with 6,460 additions and 1,557 deletions.
64 changes: 62 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
2023-07-27 15:45 Christos Zoulas <[email protected]>

* release 5.45

2023-07-17 11:53 Christos Zoulas <[email protected]>

* PR/465: psrok1: Avoid muslc asctime_r crash

2023-05-21 13:05 Christos Zoulas <[email protected]>

* add SIMH tape format support

2023-02-09 12:50 Christos Zoulas <[email protected]>

* bump the max size of the elf section notes to be read to 128K
and make it configurable

2023-01-08 1:08 Christos Zoulas <[email protected]>

* PR/415: Fix decompression with program returning empty

2022-12-26 1:47 Christos Zoulas <[email protected]>

* PR/408: fix -p with seccomp
* PR/412: fix MinGW compilation

2022-12-26 12:26 Christos Zoulas <[email protected]>

* release 5.44

2022-12-14 9:24 Christos Zoulas <[email protected]>

* Handle nan's so that we don't get internal floating point exceptions
when they are enabled (Vincent Mihalkovic)

2022-10-23 10:21 Christos Zoulas <[email protected]>

* PR/397: Restore the ability to process files from stdin immediately.

2022-09-20 17:12 Christos Zoulas <[email protected]>

* fixed various clustefuzz issues

2022-09-19 15:54 Christos Zoulas <[email protected]>

* Fix error detection for decompression code (Vincent Mihalkovic)

2022-09-15 13:50 Christos Zoulas <[email protected]>

* Add MAGIC_NO_COMPRESS_FORK and use it to produce a more
meaningful error message if we are sandboxing.

2022-09-15 10:45 Christos Zoulas <[email protected]>

* Add built-in lzip decompression support (Michal Gorny)

2022-09-14 10:35 Christos Zoulas <[email protected]>

* Add built-in zstd decompression support (Martin Rodriguez Reboredo)

2022-09-13 14:55 Christos Zoulas <[email protected]>

* release 5.43
Expand Down Expand Up @@ -229,7 +289,7 @@
2019-12-15 22:13 Christos Zoulas <[email protected]>
Document changes since the previous release:
- Always accept -S (no sandbox) even if we don't support sandboxing
- More syscalls elided for sandboxiing
- More syscalls elided for sandboxing
- 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
Expand Down Expand Up @@ -1759,7 +1819,7 @@

* Magic format checks (Dr. Werner Fink)

* Magic format function improvent (Karl Chen)
* Magic format function improvement (Karl Chen)

2006-05-03 11:11 Christos Zoulas <[email protected]>

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## README for file(1) Command and the libmagic(3) library ##

@(#) $File: README.md,v 1.4 2021/10/21 01:51:31 christos Exp $
@(#) $File: README.md,v 1.5 2023/05/28 13:59:47 christos Exp $

- Bug Tracker: <https://bugs.astron.com/>
- Build Status: <https://travis-ci.org/file/file>
Expand Down Expand Up @@ -91,6 +91,7 @@ COPYING - read this first.
* `src/gmtime_r.c` - replacement for OS's that don't have it.
* `src/is_csv.c` - knows about Comma Separated Value file format (RFC 4180).
* `src/is_json.c` - knows about JavaScript Object Notation format (RFC 8259).
* `src/is_simh.c` - knows about SIMH tape file format.
* `src/is_tar.c, tar.h` - knows about Tape ARchive format (courtesy John Gilmore).
* `src/localtime_r.c` - replacement for OS's that don't have it.
* `src/magic.h.in` - source file for magic.h
Expand Down
5 changes: 3 additions & 2 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ AC_CHECK_DECLS([daylight], , , [#include <time.h>
#include <stdlib.h>])
AC_CACHE_CHECK(for daylight, ac_cv_var_daylight,
[AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <time.h>],
[AC_LANG_PROGRAM([#include <time.h>
#include <stdlib.h>],
[#if !HAVE_DECL_DAYLIGHT
extern int daylight;
#endif
atoi(daylight);])], ac_cv_var_daylight=yes, ac_cv_var_daylight=no)])
daylight = atoi("1");])], ac_cv_var_daylight=yes, ac_cv_var_daylight=no)])
if test $ac_cv_var_daylight = yes; then
AC_DEFINE(HAVE_DAYLIGHT,1,[HAVE_DAYLIGHT])
fi
Expand Down
2 changes: 2 additions & 0 deletions config.guess
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
aarch64eb) machine=aarch64_be-unknown ;;
armeb) machine=armeb-unknown ;;
arm*) machine=arm-unknown ;;
mipsn64eb) machine=mips64-unknown ;;
mipsn64el) machine=mips64el-unknown ;;
sh3el) machine=shl-unknown ;;
sh3eb) machine=sh-unknown ;;
sh5el) machine=sh5le-unknown ;;
Expand Down
21 changes: 21 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
/* Define to 1 if you have the `gnurx' library (-lgnurx). */
#undef HAVE_LIBGNURX

/* Define to 1 if you have the `lz' library (-llz). */
#undef HAVE_LIBLZ

/* Define to 1 if you have the `lzma' library (-llzma). */
#undef HAVE_LIBLZMA

Expand All @@ -98,9 +101,15 @@
/* Define to 1 if you have the `z' library (-lz). */
#undef HAVE_LIBZ

/* Define to 1 if you have the `zstd' library (-lzstd). */
#undef HAVE_LIBZSTD

/* Define to 1 if you have the `localtime_r' function. */
#undef HAVE_LOCALTIME_R

/* Define to 1 if you have the <lzlib.h> header file. */
#undef HAVE_LZLIB_H

/* Define to 1 if you have the <lzma.h> header file. */
#undef HAVE_LZMA_H

Expand Down Expand Up @@ -276,9 +285,18 @@
/* Define to 1 if you have the <zlib.h> header file. */
#undef HAVE_ZLIB_H

/* Define to 1 if you have the <zstd_errors.h> header file. */
#undef HAVE_ZSTD_ERRORS_H

/* Define to 1 if you have the <zstd.h> header file. */
#undef HAVE_ZSTD_H

/* Define to the sub-directory where libtool stores uninstalled libraries. */
#undef LT_OBJDIR

/* Enable lzlib compression support */
#undef LZLIBSUPPORT

/* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
*/
#undef MAJOR_IN_MKDEV
Expand Down Expand Up @@ -425,6 +443,9 @@
/* Enable zlib compression support */
#undef ZLIBSUPPORT

/* Enable zstdlib compression support */
#undef ZSTDLIBSUPPORT

/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS

Expand Down
1 change: 1 addition & 0 deletions config.sub
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,7 @@ case $cpu-$vendor in
| mips64vr4300 | mips64vr4300el \
| mips64vr5000 | mips64vr5000el \
| mips64vr5900 | mips64vr5900el \
| mipsn64eb | mipsn64el \
| mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \
| mipsisa32r3 | mipsisa32r3el \
Expand Down
Loading

0 comments on commit 72d4668

Please sign in to comment.