summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2004-11-14 04:37:24 +0000
committerNed Ludd <solar@gentoo.org>2004-11-14 04:37:24 +0000
commitdb5145afd047198c0cfd58b54ca88ce6f089ebea (patch)
tree5d079a5c89b0f0ba7cceb220ec7cc638de0aa9f3 /sys-apps/file
parentsh KEYWORDS (Manifest recommit) (diff)
downloadgentoo-2-db5145afd047198c0cfd58b54ca88ce6f089ebea.tar.gz
gentoo-2-db5145afd047198c0cfd58b54ca88ce6f089ebea.tar.bz2
gentoo-2-db5145afd047198c0cfd58b54ca88ce6f089ebea.zip
fixed off by one bug in file-4.10
Diffstat (limited to 'sys-apps/file')
-rw-r--r--sys-apps/file/ChangeLog6
-rw-r--r--sys-apps/file/Manifest13
-rw-r--r--sys-apps/file/file-4.10-r1.ebuild4
-rw-r--r--sys-apps/file/files/file-4.10-mconvert.patch18
4 files changed, 33 insertions, 8 deletions
diff --git a/sys-apps/file/ChangeLog b/sys-apps/file/ChangeLog
index 73e36a63f563..de97ad6bd263 100644
--- a/sys-apps/file/ChangeLog
+++ b/sys-apps/file/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/file
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.64 2004/11/12 20:10:54 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.65 2004/11/14 04:37:24 solar Exp $
+
+ 13 Nov 2004; <solar@gentoo.org> +files/file-4.10-mconvert.patch,
+ file-4.10-r1.ebuild:
+ fixed off by one bug in file-4.10
12 Nov 2004; Gustavo Zacarias <gustavoz@gentoo.org> file-4.10-r1.ebuild:
Stable on sparc
diff --git a/sys-apps/file/Manifest b/sys-apps/file/Manifest
index 8d4211bc1b20..b3348fc4ab03 100644
--- a/sys-apps/file/Manifest
+++ b/sys-apps/file/Manifest
@@ -1,11 +1,12 @@
-MD5 09b222fed88036e11b814fee55e9f2ef ChangeLog 8843
-MD5 061925f1389fb03c0e6a2e639eaaf9da file-4.08.ebuild 1425
+MD5 547ea3a610cf543b59690d993575928f file-4.10-r1.ebuild 1912
MD5 e2d53ae79cd02fc5ddbad4dc8de3f656 file-4.09.ebuild 1903
-MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
MD5 deefcaad96da75f331ac1ab9d9bc23f9 file-4.10.ebuild 1900
-MD5 397fe1ac24cbad058a03936b3df1d193 file-4.10-r1.ebuild 1866
+MD5 09b222fed88036e11b814fee55e9f2ef ChangeLog 8843
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 061925f1389fb03c0e6a2e639eaaf9da file-4.08.ebuild 1425
+MD5 8cf0ba615168e0a01ddd576d39b19efe files/digest-file-4.10-r1 61
+MD5 d83caef7e9c2a9719022f57de134edae files/file-4.10-mconvert.patch 476
MD5 9ab14ea35a2db2864bb6e92d1ca87f17 files/digest-file-4.08 61
MD5 655e5c463709e244970b23b64aaf8bf7 files/digest-file-4.09 61
-MD5 8f6cec8c0754678a2817139182637eac files/file-4.xx-mips-gentoo.diff 13035
MD5 8cf0ba615168e0a01ddd576d39b19efe files/digest-file-4.10 61
-MD5 8cf0ba615168e0a01ddd576d39b19efe files/digest-file-4.10-r1 61
+MD5 8f6cec8c0754678a2817139182637eac files/file-4.xx-mips-gentoo.diff 13035
diff --git a/sys-apps/file/file-4.10-r1.ebuild b/sys-apps/file/file-4.10-r1.ebuild
index e8bffdb94fce..c5744668add0 100644
--- a/sys-apps/file/file-4.10-r1.ebuild
+++ b/sys-apps/file/file-4.10-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-4.10-r1.ebuild,v 1.5 2004/11/12 20:10:54 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-4.10-r1.ebuild,v 1.6 2004/11/14 04:37:24 solar Exp $
inherit flag-o-matic gnuconfig eutils distutils libtool
@@ -21,6 +21,8 @@ src_unpack() {
unpack ${A}
cd ${S}
+ epatch ${FILESDIR}/file-4.10-mconvert.patch
+
# (12 Oct 2003) <kumba@gentoo.org>
# This patch is for MIPS only. It slightly changes the 'file' output
# on MIPS machines to a specific format so that other programs can
diff --git a/sys-apps/file/files/file-4.10-mconvert.patch b/sys-apps/file/files/file-4.10-mconvert.patch
new file mode 100644
index 000000000000..9d1a6e157bab
--- /dev/null
+++ b/sys-apps/file/files/file-4.10-mconvert.patch
@@ -0,0 +1,18 @@
+--- src/softmagic.c.orig 2004-11-13 03:07:49.000000000 -0500
++++ src/softmagic.c 2004-11-13 03:27:20.000000000 -0500
+@@ -427,12 +427,12 @@ mconvert(struct magic_set *ms, union VAL
+ return 1;
+ case FILE_STRING:
+ {
+- int n;
++ size_t n;
+
+ /* Null terminate and eat *trailing* return */
+ p->s[sizeof(p->s) - 1] = '\0';
+- n = strlen(p->s) - 1;
+- if (p->s[n] == '\n')
++ n = strlen(p->s);
++ if (n-- && p->s[n] == '\n')
+ p->s[n] = '\0';
+ return 1;
+ }