Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/CHRISTOS]: src/external/bsd/file/dist 2019-05-14 22:26 Christos Zoulas...
details: https://anonhg.NetBSD.org/src/rev/6ccf14049ea8
branches: CHRISTOS
changeset: 451430:6ccf14049ea8
user: christos <christos%NetBSD.org@localhost>
date: Wed May 22 17:19:56 2019 +0000
description:
2019-05-14 22:26 Christos Zoulas <christos%zoulas.com@localhost>
* release 5.37
2019-05-09 22:27 Christos Zoulas <christos%zoulas.com@localhost>
* Make sure that continuation separators are printed
with -k within softmagic
2019-05-06 22:27 Christos Zoulas <christos%zoulas.com@localhost>
* 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@localhost>
* PR/77: Handle --mime-type and -k correctly.
2019-05-03 15:26 Christos Zoulas <christos%zoulas.com@localhost>
* 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@localhost>
* PR/75: --enable-zlib, did not work.
2019-02-27 11:54 Christos Zoulas <christos%zoulas.com@localhost>
* Improve regex efficiency (Michael Schroeder) by:
1. Prefixing regex searches with regular search
for keywords where possible
2. Using memmem(3) where available
diffstat:
external/bsd/file/dist/ChangeLog | 50 ++
external/bsd/file/dist/README | 4 +-
external/bsd/file/dist/config.h.in | 21 +-
external/bsd/file/dist/configure | 34 +-
external/bsd/file/dist/configure.ac | 19 +-
external/bsd/file/dist/doc/file.1 | 10 +-
external/bsd/file/dist/doc/magic.5 | 12 +-
external/bsd/file/dist/magic/Makefile.am | 17 +-
external/bsd/file/dist/magic/Makefile.in | 17 +-
external/bsd/file/dist/magic/magdir/acorn | 4 +-
external/bsd/file/dist/magic/magdir/adventure | 8 +-
external/bsd/file/dist/magic/magdir/algol68 | 10 +-
external/bsd/file/dist/magic/magdir/android | 49 ++-
external/bsd/file/dist/magic/magdir/animation | 43 +-
external/bsd/file/dist/magic/magdir/apple | 113 ++++-
external/bsd/file/dist/magic/magdir/archive | 223 +++++++++-
external/bsd/file/dist/magic/magdir/audio | 229 +++++++++++-
external/bsd/file/dist/magic/magdir/basis | 4 +-
external/bsd/file/dist/magic/magdir/ber | 6 +-
external/bsd/file/dist/magic/magdir/bioinformatics | 8 +-
external/bsd/file/dist/magic/magdir/biosig | 2 +-
external/bsd/file/dist/magic/magdir/blcr | 2 +-
external/bsd/file/dist/magic/magdir/blender | 4 +-
external/bsd/file/dist/magic/magdir/c-lang | 69 ++-
external/bsd/file/dist/magic/magdir/cad | 26 +-
external/bsd/file/dist/magic/magdir/clojure | 30 +
external/bsd/file/dist/magic/magdir/commands | 6 +-
external/bsd/file/dist/magic/magdir/compress | 87 +++-
external/bsd/file/dist/magic/magdir/console | 93 +++-
external/bsd/file/dist/magic/magdir/coverage | 12 +-
external/bsd/file/dist/magic/magdir/ctf | 2 +-
external/bsd/file/dist/magic/magdir/cups | 4 +-
external/bsd/file/dist/magic/magdir/database | 32 +-
external/bsd/file/dist/magic/magdir/dataone | 16 +-
external/bsd/file/dist/magic/magdir/dbpf | 4 +-
external/bsd/file/dist/magic/magdir/dolby | 4 +-
external/bsd/file/dist/magic/magdir/dyadic | 6 +-
external/bsd/file/dist/magic/magdir/ebml | 4 +-
external/bsd/file/dist/magic/magdir/edid | 11 +
external/bsd/file/dist/magic/magdir/elf | 6 +-
external/bsd/file/dist/magic/magdir/erlang | 4 +-
external/bsd/file/dist/magic/magdir/espressif | 57 ++
external/bsd/file/dist/magic/magdir/esri | 4 +-
external/bsd/file/dist/magic/magdir/filesystems | 140 ++++--
external/bsd/file/dist/magic/magdir/finger | 4 +-
external/bsd/file/dist/magic/magdir/flash | 6 +-
external/bsd/file/dist/magic/magdir/fonts | 75 +++-
external/bsd/file/dist/magic/magdir/fsav | 98 ++++-
external/bsd/file/dist/magic/magdir/games | 6 +-
external/bsd/file/dist/magic/magdir/geo | 12 +-
external/bsd/file/dist/magic/magdir/gnome | 6 +-
external/bsd/file/dist/magic/magdir/gnu | 4 +-
external/bsd/file/dist/magic/magdir/graphviz | 4 +-
external/bsd/file/dist/magic/magdir/guile | 6 +-
external/bsd/file/dist/magic/magdir/hp | 8 +-
external/bsd/file/dist/magic/magdir/ibm6000 | 4 +-
external/bsd/file/dist/magic/magdir/images | 245 ++++++++++--
external/bsd/file/dist/magic/magdir/isz | 4 +-
external/bsd/file/dist/magic/magdir/java | 20 +-
external/bsd/file/dist/magic/magdir/keepass | 8 +-
external/bsd/file/dist/magic/magdir/kerberos | 4 +-
external/bsd/file/dist/magic/magdir/kml | 12 +-
external/bsd/file/dist/magic/magdir/linux | 24 +-
external/bsd/file/dist/magic/magdir/lisp | 4 +-
external/bsd/file/dist/magic/magdir/llvm | 4 +-
external/bsd/file/dist/magic/magdir/lua | 4 +-
external/bsd/file/dist/magic/magdir/m4 | 8 +-
external/bsd/file/dist/magic/magdir/macintosh | 16 +-
external/bsd/file/dist/magic/magdir/mail.news | 4 +-
external/bsd/file/dist/magic/magdir/map | 298 +++++++++++++++-
external/bsd/file/dist/magic/magdir/marc21 | 2 +-
external/bsd/file/dist/magic/magdir/matroska | 4 +-
external/bsd/file/dist/magic/magdir/mercurial | 4 +-
external/bsd/file/dist/magic/magdir/metastore | 4 +-
external/bsd/file/dist/magic/magdir/microfocus | 4 +-
external/bsd/file/dist/magic/magdir/misctools | 6 +-
external/bsd/file/dist/magic/magdir/modem | 4 +-
external/bsd/file/dist/magic/magdir/mozilla | 19 +-
external/bsd/file/dist/magic/magdir/msdos | 34 +-
external/bsd/file/dist/magic/magdir/msooxml | 6 +-
external/bsd/file/dist/magic/magdir/neko | 4 +-
external/bsd/file/dist/magic/magdir/netbsd | 308 ++++++---------
external/bsd/file/dist/magic/magdir/nitpicker | 4 +-
external/bsd/file/dist/magic/magdir/numpy | 9 +
external/bsd/file/dist/magic/magdir/ole2compounddocs | 4 +-
external/bsd/file/dist/magic/magdir/palm | 6 +-
external/bsd/file/dist/magic/magdir/parrot | 4 +-
external/bsd/file/dist/magic/magdir/pbf | 4 +-
external/bsd/file/dist/magic/magdir/pc98 | 2 +-
external/bsd/file/dist/magic/magdir/pgp | 10 +-
external/bsd/file/dist/magic/magdir/polyml | 4 +-
external/bsd/file/dist/magic/magdir/printer | 4 +-
external/bsd/file/dist/magic/magdir/psl | 4 +-
external/bsd/file/dist/magic/magdir/pwsafe | 8 +-
external/bsd/file/dist/magic/magdir/python | 18 +-
external/bsd/file/dist/magic/magdir/qt | 4 +-
external/bsd/file/dist/magic/magdir/revision | 4 +-
external/bsd/file/dist/magic/magdir/riff | 10 +-
external/bsd/file/dist/magic/magdir/rpmsg | 7 +
external/bsd/file/dist/magic/magdir/ruby | 22 +-
external/bsd/file/dist/magic/magdir/scientific | 6 +-
external/bsd/file/dist/magic/magdir/selinux | 2 +-
external/bsd/file/dist/magic/magdir/sendmail | 4 +-
external/bsd/file/dist/magic/magdir/sequent | 4 +-
external/bsd/file/dist/magic/magdir/sgml | 4 +-
external/bsd/file/dist/magic/magdir/sniffer | 111 ++++-
external/bsd/file/dist/magic/magdir/sql | 8 +-
external/bsd/file/dist/magic/magdir/sun | 4 +-
external/bsd/file/dist/magic/magdir/sysex | 6 +-
external/bsd/file/dist/magic/magdir/tcl | 2 +-
external/bsd/file/dist/magic/magdir/terminfo | 6 +-
external/bsd/file/dist/magic/magdir/tex | 4 +-
external/bsd/file/dist/magic/magdir/tplink | 10 +-
external/bsd/file/dist/magic/magdir/unicode | 7 +-
external/bsd/file/dist/magic/magdir/varied.script | 4 +-
external/bsd/file/dist/magic/magdir/virtual | 200 +++++++++-
external/bsd/file/dist/magic/magdir/warc | 4 +-
external/bsd/file/dist/magic/magdir/webassembly | 6 +-
external/bsd/file/dist/magic/magdir/windows | 205 +++++++++-
external/bsd/file/dist/magic/magdir/wordprocessors | 4 +-
external/bsd/file/dist/magic/magdir/wsdl | 6 +-
external/bsd/file/dist/magic/magdir/xwindows | 6 +-
external/bsd/file/dist/magic/magdir/yara | 4 +-
external/bsd/file/dist/magic/magdir/zip | 6 +-
external/bsd/file/dist/src/apprentice.c | 170 ++++----
external/bsd/file/dist/src/ascmagic.c | 82 ++-
external/bsd/file/dist/src/buffer.c | 21 +-
external/bsd/file/dist/src/cdf.c | 143 +++---
external/bsd/file/dist/src/cdf.h | 6 +-
external/bsd/file/dist/src/cdf_time.c | 28 +-
external/bsd/file/dist/src/compress.c | 217 ++++++----
external/bsd/file/dist/src/der.c | 14 +-
external/bsd/file/dist/src/elfclass.h | 16 +-
external/bsd/file/dist/src/encoding.c | 81 +++-
external/bsd/file/dist/src/file.c | 28 +-
external/bsd/file/dist/src/file.h | 27 +-
external/bsd/file/dist/src/fsmagic.c | 13 +-
external/bsd/file/dist/src/funcs.c | 45 +-
external/bsd/file/dist/src/is_json.c | 25 +-
external/bsd/file/dist/src/is_tar.c | 13 +-
external/bsd/file/dist/src/magic.c | 74 ++-
external/bsd/file/dist/src/print.c | 28 +-
external/bsd/file/dist/src/readcdf.c | 20 +-
external/bsd/file/dist/src/readelf.c | 208 ++++++----
external/bsd/file/dist/src/seccomp.c | 7 +-
external/bsd/file/dist/src/softmagic.c | 372 ++++++++++++------
146 files changed, 3616 insertions(+), 1566 deletions(-)
diffs (truncated from 11815 to 300 lines):
diff -r 36e8bdc45aa7 -r 6ccf14049ea8 external/bsd/file/dist/ChangeLog
--- a/external/bsd/file/dist/ChangeLog Thu Oct 18 23:54:09 2018 +0000
+++ b/external/bsd/file/dist/ChangeLog Wed May 22 17:19:56 2019 +0000
@@ -1,3 +1,53 @@
+2019-05-14 22:26 Christos Zoulas <christos%zoulas.com@localhost>
+
+ * release 5.37
+
+2019-05-09 22:27 Christos Zoulas <christos%zoulas.com@localhost>
+
+ * Make sure that continuation separators are printed
+ with -k within softmagic
+
+2019-05-06 22:27 Christos Zoulas <christos%zoulas.com@localhost>
+
+ * 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@localhost>
+
+ * PR/77: Handle --mime-type and -k correctly.
+
+2019-05-03 15:26 Christos Zoulas <christos%zoulas.com@localhost>
+
+ * 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@localhost>
+
+ * PR/75: --enable-zlib, did not work.
+
+2019-02-27 11:54 Christos Zoulas <christos%zoulas.com@localhost>
+
+ * Improve regex efficiency (Michael Schroeder) by:
+ 1. Prefixing regex searches with regular search
+ for keywords where possible
+ 2. Using memmem(3) where available
+
+2019-02-20 10:16 Christos Zoulas <christos%zoulas.com@localhost>
+
+ * release 5.36
+
+2019-02-19 15:30 Christos Zoulas <christos%zoulas.com@localhost>
+
+ * Fix cast to use cast macros
+ * Add UCS-32 builtin detection (PR/61) reported by tmc
+
+2019-02-18 18:24 Christos Zoulas <christos%zoulas.com@localhost>
+
+ * Fix stack read (PR/62) and write (PR/64) stack overflows
+ reported by spinpx
+
2018-10-18 19:32 Christos Zoulas <christos%zoulas.com@localhost>
* release 5.35
diff -r 36e8bdc45aa7 -r 6ccf14049ea8 external/bsd/file/dist/README
--- a/external/bsd/file/dist/README Thu Oct 18 23:54:09 2018 +0000
+++ b/external/bsd/file/dist/README Wed May 22 17:19:56 2019 +0000
@@ -1,6 +1,6 @@
-## README for file(1) Command ##
+## README for file(1) Command and the libmagic(3) library ##
- @(#) $File: README,v 1.56 2018/09/09 20:33:28 christos Exp $
+ @(#) $File: README,v 1.57 2019/02/06 00:20:56 christos Exp $
Mailing List: file%astron.com@localhost
Mailing List archives: http://mailman.astron.com/pipermail/file/
diff -r 36e8bdc45aa7 -r 6ccf14049ea8 external/bsd/file/dist/config.h.in
--- a/external/bsd/file/dist/config.h.in Thu Oct 18 23:54:09 2018 +0000
+++ b/external/bsd/file/dist/config.h.in Wed May 22 17:19:56 2019 +0000
@@ -83,9 +83,6 @@
/* Define to 1 if you have the `z' library (-lz). */
#undef HAVE_LIBZ
-/* Define to 1 if you have the <limits.h> header file. */
-#undef HAVE_LIMITS_H
-
/* Define to 1 if you have the `localtime_r' function. */
#undef HAVE_LOCALTIME_R
@@ -95,6 +92,9 @@
/* Define to 1 if <wchar.h> declares mbstate_t. */
#undef HAVE_MBSTATE_T
+/* Define to 1 if you have the `memmem' function. */
+#undef HAVE_MEMMEM
+
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
@@ -113,15 +113,9 @@
/* Define to 1 if you have the `pread' function. */
#undef HAVE_PREAD
-/* Define to 1 if you have the `setlocale' function. */
-#undef HAVE_SETLOCALE
-
/* Have sig_t type */
#undef HAVE_SIG_T
-/* Define to 1 if you have the <stddef.h> header file. */
-#undef HAVE_STDDEF_H
-
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
@@ -131,9 +125,6 @@
/* Define to 1 if you have the `strcasestr' function. */
#undef HAVE_STRCASESTR
-/* Define to 1 if you have the `strerror' function. */
-#undef HAVE_STRERROR
-
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
@@ -152,9 +143,6 @@
/* Define to 1 if you have the `strtof' function. */
#undef HAVE_STRTOF
-/* Define to 1 if you have the `strtoul' function. */
-#undef HAVE_STRTOUL
-
/* HAVE_STRUCT_OPTION */
#undef HAVE_STRUCT_OPTION
@@ -176,6 +164,9 @@
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
+/* Define to 1 if you have the <sys/sysmacros.h> header file. */
+#undef HAVE_SYS_SYSMACROS_H
+
/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
diff -r 36e8bdc45aa7 -r 6ccf14049ea8 external/bsd/file/dist/configure
--- a/external/bsd/file/dist/configure Thu Oct 18 23:54:09 2018 +0000
+++ b/external/bsd/file/dist/configure Wed May 22 17:19:56 2019 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for file 5.35.
+# Generated by GNU Autoconf 2.69 for file 5.37.
#
# Report bugs to <christos%astron.com@localhost>.
#
@@ -590,8 +590,8 @@
# Identity of this package.
PACKAGE_NAME='file'
PACKAGE_TARNAME='file'
-PACKAGE_VERSION='5.35'
-PACKAGE_STRING='file 5.35'
+PACKAGE_VERSION='5.37'
+PACKAGE_STRING='file 5.37'
PACKAGE_BUGREPORT='christos%astron.com@localhost'
PACKAGE_URL=''
@@ -1329,7 +1329,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures file 5.35 to adapt to many kinds of systems.
+\`configure' configures file 5.37 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1399,7 +1399,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of file 5.35:";;
+ short | recursive ) echo "Configuration of file 5.37:";;
esac
cat <<\_ACEOF
@@ -1511,7 +1511,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-file configure 5.35
+file configure 5.37
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2167,7 +2167,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by file $as_me 5.35, which was
+It was created by file $as_me 5.37, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3033,7 +3033,7 @@
# Define the identity of the package.
PACKAGE='file'
- VERSION='5.35'
+ VERSION='5.37'
cat >>confdefs.h <<_ACEOF
@@ -12784,7 +12784,7 @@
fi
-for ac_header in stdint.h fcntl.h stdint.h inttypes.h unistd.h
+for ac_header in stdint.h fcntl.h inttypes.h unistd.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -12797,7 +12797,7 @@
done
-for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
+for ac_header in utime.h wchar.h wctype.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -12823,7 +12823,7 @@
done
-for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
+for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -12973,7 +12973,8 @@
fi
-ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
+ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
+"
if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
cat >>confdefs.h <<_ACEOF
@@ -14226,7 +14227,7 @@
fi
-for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale
+for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -14580,7 +14581,8 @@
if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
as_fn_error $? "zlib support requested but not found" "$LINENO" 5
fi
-elif test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
+fi
+if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
$as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
@@ -15131,7 +15133,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by file $as_me 5.35, which was
+This file was extended by file $as_me 5.37, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -15197,7 +15199,7 @@
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-file config.status 5.35
+file config.status 5.37
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff -r 36e8bdc45aa7 -r 6ccf14049ea8 external/bsd/file/dist/configure.ac
--- a/external/bsd/file/dist/configure.ac Thu Oct 18 23:54:09 2018 +0000
+++ b/external/bsd/file/dist/configure.ac Wed May 22 17:19:56 2019 +0000
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT([file],[5.35],[christos%astron.com@localhost])
+AC_INIT([file],[5.37],[christos%astron.com@localhost])
AM_INIT_AUTOMAKE([subdir-objects foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
@@ -35,12 +35,12 @@
])
AC_MSG_CHECKING(for zlib support)
-AC_ARG_ENABLE(zlib,
+AC_ARG_ENABLE([zlib],
[AS_HELP_STRING([--disable-zlib], [disable zlib compression support @<:@default=auto@:>@])])
AC_MSG_RESULT($enable_zlib)
AC_MSG_CHECKING(for libseccomp support)
-AC_ARG_ENABLE(libseccomp,
Home |
Main Index |
Thread Index |
Old Index