Import of pkgsrc-2015Q2

This commit is contained in:
2015-08-30 02:56:09 -07:00
committed by Lionel Sambuc
parent 4af1cdf7a9
commit f641581404
15409 changed files with 267784 additions and 121624 deletions

View File

@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.34 2015/03/22 09:48:51 bsiegert Exp $
# $NetBSD: Makefile,v 1.35 2015/05/23 13:11:07 bsiegert Exp $
DISTNAME= file-5.22
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.astron.com/pub/file/

View File

@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.22 2015/03/27 18:57:43 bsiegert Exp $
$NetBSD: distinfo,v 1.23 2015/05/23 13:11:07 bsiegert Exp $
SHA1 (file-5.22.tar.gz) = 20fa06592291555f2b478ea2fb70b53e9e8d1f7c
RMD160 (file-5.22.tar.gz) = 73b5e5c128a6ecb2b870590728cc9013fe0c9dbb
@@ -6,3 +6,4 @@ Size (file-5.22.tar.gz) = 732556 bytes
SHA1 (patch-aa) = d3aa3667e3d28ac1268b83de2de372ba083705fc
SHA1 (patch-src_compress.c) = 63407a3103bb1e77a5c8f1a5e859eb884ad55b3a
SHA1 (patch-src_fsmagic.c) = ee770cf37dfdfbc5a7c123d2691312610b76e76e
SHA1 (patch-src_softmagic.c) = 5952a49b75b1a6968179cd61f28e7731caeb3e17

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-src_softmagic.c,v 1.1 2015/05/23 13:11:07 bsiegert Exp $
contains fix from
https://github.com/file/file/commit/3046c231e1a2fcdd5033bea0603c23f435a00bd7
--- src/softmagic.c.orig 2015-01-01 17:07:34.000000000 +0000
+++ src/softmagic.c
@@ -1116,10 +1116,8 @@ mcopy(struct magic_set *ms, union VALUET
bytecnt = m->str_range;
}
- if (bytecnt == 0)
- bytecnt = 8192;
- if (bytecnt > nbytes)
- bytecnt = nbytes;
+ if (bytecnt == 0 || bytecnt > nbytes - offset)
+ bytecnt = nbytes - offset;
buf = RCAST(const char *, s) + offset;
end = last = RCAST(const char *, s) + bytecnt;