From a46ba80672bcda58898da438a0d04371aeb7926f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Thu, 19 Feb 2015 21:10:06 +0100 Subject: [PATCH] - fix "use count (30) exceeded" error on some jpg files - rel 2 --- file.spec | 4 +++- name-use-count.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 name-use-count.patch diff --git a/file.spec b/file.spec index 6be44b0..0900c54 100644 --- 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 index 0000000..e5d2aa7 --- /dev/null +++ b/name-use-count.patch @@ -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 -- 2.44.0