]> git.pld-linux.org Git - packages/file.git/commitdiff
- fix "use count (30) exceeded" error on some jpg files auto/th/file-5.22-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 19 Feb 2015 20:10:06 +0000 (21:10 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 19 Feb 2015 20:10:06 +0000 (21:10 +0100)
 - rel 2

file.spec
name-use-count.patch [new file with mode: 0644]

index 6be44b08bc0bd4b0161b6d90f5bc104f37eacd39..0900c545a64257778c591fcf04e8aaed2511e3af 100644 (file)
--- a/file.spec
+++ b/file.spec
@@ -30,7 +30,7 @@ Summary(zh_CN.UTF-8): 判定文件类型的工具。
 Summary(zh_TW.UTF-8):  用於決定檔案類型的一個工具程式。
 Name:          file
 Version:       5.22
-Release:       1
+Release:       2
 License:       distributable
 Group:         Applications/File
 Source0:       ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
@@ -44,6 +44,7 @@ Patch0:               %{name}-selinux.patch
 Patch1:                searchpath.patch
 Patch2:                automake.patch
 Patch3:                %{name}-perl.patch
+Patch4:                name-use-count.patch
 URL:           http://www.darwinsys.com/file/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -270,6 +271,7 @@ Wiązania Pythona 3 do biblioteki libmagic.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %if "%{cc_version}" < "3.4"
 %{__sed} -i -e 's,-Wextra,,' configure.ac
diff --git a/name-use-count.patch b/name-use-count.patch
new file mode 100644 (file)
index 0000000..e5d2aa7
--- /dev/null
@@ -0,0 +1,11 @@
+--- file-5.22/src/file.h~      2015-01-01 18:07:34.000000000 +0100
++++ file-5.22/src/file.h       2015-02-19 20:58:10.783901201 +0100
+@@ -412,7 +412,7 @@
+       uint16_t elf_phnum_max;
+       uint16_t elf_notes_max;
+ #define       FILE_INDIR_MAX                  15
+-#define       FILE_NAME_MAX                   30
++#define       FILE_NAME_MAX                   256
+ #define       FILE_ELF_SHNUM_MAX              32768
+ #define       FILE_ELF_PHNUM_MAX              128
+ #define       FILE_ELF_NOTES_MAX              256
This page took 0.260968 seconds and 4 git commands to generate.