diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2015-03-22 09:48:51 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2015-03-22 09:48:51 +0000 |
commit | dc8abba5d587b229835ab99c27a519d6c94ed7d7 (patch) | |
tree | 425fc606df7a016183437379cfa80ad69c0456e7 | |
parent | f804c3e14d4ff6d541df405d5578a2583a9e6225 (diff) | |
download | pkgsrc-dc8abba5d587b229835ab99c27a519d6c94ed7d7.tar.gz |
SECURITY: Update file to 5.22.
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.
-rw-r--r-- | sysutils/file/Makefile | 4 | ||||
-rw-r--r-- | sysutils/file/distinfo | 14 | ||||
-rw-r--r-- | sysutils/file/patches/patch-config.h.in | 26 | ||||
-rw-r--r-- | sysutils/file/patches/patch-configure | 24 | ||||
-rw-r--r-- | sysutils/file/patches/patch-configure.ac | 24 | ||||
-rw-r--r-- | sysutils/file/patches/patch-src_file.c | 16 | ||||
-rw-r--r-- | sysutils/file/patches/patch-src_file.h | 16 | ||||
-rw-r--r-- | sysutils/file/patches/patch-src_getline.c | 15 |
8 files changed, 6 insertions, 133 deletions
diff --git a/sysutils/file/Makefile b/sysutils/file/Makefile index b6b700ef792..f07ee545add 100644 --- a/sysutils/file/Makefile +++ b/sysutils/file/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.33 2014/12/15 11:46:36 jperkin Exp $ +# $NetBSD: Makefile,v 1.34 2015/03/22 09:48:51 bsiegert Exp $ -DISTNAME= file-5.20 +DISTNAME= file-5.22 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.astron.com/pub/file/ diff --git a/sysutils/file/distinfo b/sysutils/file/distinfo index d166772e924..781aa8a6aa4 100644 --- a/sysutils/file/distinfo +++ b/sysutils/file/distinfo @@ -1,12 +1,6 @@ -$NetBSD: distinfo,v 1.20 2014/11/07 11:17:12 schmonz Exp $ +$NetBSD: distinfo,v 1.21 2015/03/22 09:48:51 bsiegert Exp $ -SHA1 (file-5.20.tar.gz) = 4e93e9ae915f1812b05cc6012ae968fdb6416f8f -RMD160 (file-5.20.tar.gz) = a584dc0d254585c0f7a2cebab10b4115d88a3293 -Size (file-5.20.tar.gz) = 725937 bytes +SHA1 (file-5.22.tar.gz) = 20fa06592291555f2b478ea2fb70b53e9e8d1f7c +RMD160 (file-5.22.tar.gz) = 73b5e5c128a6ecb2b870590728cc9013fe0c9dbb +Size (file-5.22.tar.gz) = 732556 bytes SHA1 (patch-aa) = d3aa3667e3d28ac1268b83de2de372ba083705fc -SHA1 (patch-config.h.in) = 0b1b675715aba1a8a5a9827ff676c83857a23a93 -SHA1 (patch-configure) = 02bcdc6eda7816e02bd98457372cba34dc2e19f4 -SHA1 (patch-configure.ac) = 72b48d2e1b62d0bf3adc7c489a12c53901ef073d -SHA1 (patch-src_file.c) = a9b6467125816a9a803083c7ccac6707e36b5fd2 -SHA1 (patch-src_file.h) = 258ba7b1c0e0c6e3a4571088ac91d20440c4dff6 -SHA1 (patch-src_getline.c) = 23365ae99c8c5a4c4ff4e0d94b83798d12335112 diff --git a/sysutils/file/patches/patch-config.h.in b/sysutils/file/patches/patch-config.h.in deleted file mode 100644 index 197367bc634..00000000000 --- a/sysutils/file/patches/patch-config.h.in +++ /dev/null @@ -1,26 +0,0 @@ -$NetBSD: patch-config.h.in,v 1.1 2014/11/07 11:17:12 schmonz Exp $ - -Some OSes have locale_t in xlocale.h (patch from upstream). - ---- config.h.in.orig 2014-11-07 11:11:41.000000000 +0000 -+++ config.h.in -@@ -104,6 +104,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 -+ - /* Define to 1 if you have the <stddef.h> header file. */ - #undef HAVE_STDDEF_H - -@@ -228,6 +231,9 @@ - /* Define to 1 if `vfork' works. */ - #undef HAVE_WORKING_VFORK - -+/* Define to 1 if you have the <xlocale.h> header file. */ -+#undef HAVE_XLOCALE_H -+ - /* Define to 1 if you have the <zlib.h> header file. */ - #undef HAVE_ZLIB_H - diff --git a/sysutils/file/patches/patch-configure b/sysutils/file/patches/patch-configure deleted file mode 100644 index 93ddcff95c0..00000000000 --- a/sysutils/file/patches/patch-configure +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-configure,v 1.1 2014/11/07 11:17:12 schmonz Exp $ - -Some OSes have locale_t in xlocale.h (patch from upstream). - ---- configure.orig 2014-11-07 10:49:37.000000000 +0000 -+++ configure -@@ -12785,7 +12785,7 @@ fi - - done - --for ac_header in getopt.h err.h -+for ac_header in getopt.h err.h xlocale.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" -@@ -14191,7 +14191,7 @@ fi - fi - - --for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale -+for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale - 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" diff --git a/sysutils/file/patches/patch-configure.ac b/sysutils/file/patches/patch-configure.ac deleted file mode 100644 index c83b70a56c2..00000000000 --- a/sysutils/file/patches/patch-configure.ac +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-configure.ac,v 1.1 2014/11/07 11:17:12 schmonz Exp $ - -Some OSes have locale_t in xlocale.h (patch from upstream). - ---- configure.ac.orig 2014-10-10 18:56:21.000000000 +0000 -+++ configure.ac -@@ -82,7 +82,7 @@ AC_HEADER_MAJOR - AC_HEADER_SYS_WAIT - AC_CHECK_HEADERS(stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h) - AC_CHECK_HEADERS(stddef.h utime.h wchar.h wctype.h limits.h) --AC_CHECK_HEADERS(getopt.h err.h) -+AC_CHECK_HEADERS(getopt.h err.h xlocale.h) - AC_CHECK_HEADERS(sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h) - AC_CHECK_HEADERS(zlib.h) - -@@ -138,7 +138,7 @@ else - fi]) - - dnl Checks for functions --AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale) -+AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale) - - dnl Provide implementation of some required functions if necessary - AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r pread strcasestr fmtcheck) diff --git a/sysutils/file/patches/patch-src_file.c b/sysutils/file/patches/patch-src_file.c deleted file mode 100644 index 2eb9be8fd03..00000000000 --- a/sysutils/file/patches/patch-src_file.c +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-src_file.c,v 1.1 2014/11/07 11:17:12 schmonz Exp $ - -Some OSes have locale_t in xlocale.h (patch from upstream). - ---- src/file.c.orig 2014-09-11 15:05:33.000000000 +0000 -+++ src/file.c -@@ -142,7 +142,9 @@ main(int argc, char *argv[]) - const char *magicfile = NULL; /* where the magic is */ - - /* makes islower etc work for other langs */ -+#ifdef HAVE_SETLOCALE - (void)setlocale(LC_CTYPE, ""); -+#endif - - #ifdef __EMX__ - /* sh-like wildcard expansion! Shouldn't hurt at least ... */ diff --git a/sysutils/file/patches/patch-src_file.h b/sysutils/file/patches/patch-src_file.h deleted file mode 100644 index 59b2211b163..00000000000 --- a/sysutils/file/patches/patch-src_file.h +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-src_file.h,v 1.1 2014/11/07 11:17:12 schmonz Exp $ - -Some OSes have locale_t in xlocale.h (patch from upstream). - ---- src/file.h.orig 2014-09-11 15:05:33.000000000 +0000 -+++ src/file.h -@@ -474,6 +474,9 @@ protected int file_os2_apptype(struct ma - #if defined(HAVE_LOCALE_H) - #include <locale.h> - #endif -+#if defined(HAVE_XLOCALE_H) -+#include <xlocale.h> -+#endif - - typedef struct { - const char *pat; diff --git a/sysutils/file/patches/patch-src_getline.c b/sysutils/file/patches/patch-src_getline.c deleted file mode 100644 index 9382d71ce63..00000000000 --- a/sysutils/file/patches/patch-src_getline.c +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-src_getline.c,v 1.1 2014/03/12 19:43:17 wiz Exp $ - -Export getline symbol if missing. - ---- src/getline.c.orig 2013-01-11 19:36:54.000000000 +0000 -+++ src/getline.c -@@ -76,7 +76,7 @@ getdelim(char **buf, size_t *bufsiz, int - } - } - --ssize_t -+public ssize_t - getline(char **buf, size_t *bufsiz, FILE *fp) - { - return getdelim(buf, bufsiz, '\n', fp); |