diff --git a/file-5.19-gdbm.patch b/file-5.19-gdbm.patch new file mode 100644 index 0000000..220f9b1 --- /dev/null +++ b/file-5.19-gdbm.patch @@ -0,0 +1,20 @@ +Index: magic/Magdir/database +=================================================================== +--- magic/Magdir/database.orig 2014-06-03 21:17:27.000000000 +0200 ++++ magic/Magdir/database 2014-08-18 14:40:57.296931686 +0200 +@@ -9,9 +9,13 @@ + # GDBM magic numbers + # Will be maintained as part of the GDBM distribution in the future. + # +-0 belong 0x13579ace GNU dbm 1.x or ndbm database, big endian ++0 belong 0x13579acd GNU dbm 1.x or ndbm database, big endian, 32-bit + !:mime application/x-gdbm +-0 lelong 0x13579ace GNU dbm 1.x or ndbm database, little endian ++0 lelong 0x13579acd GNU dbm 1.x or ndbm database, little endian, 32-bit ++!:mime application/x-gdbm ++0 belong 0x13579acf GNU dbm 1.x or ndbm database, big endian, 64-bit ++!:mime application/x-gdbm ++0 lelong 0x13579acf GNU dbm 1.x or ndbm database, little endian, 64-bit + !:mime application/x-gdbm + 0 string GDBM GNU dbm 2.x database + !:mime application/x-gdbm diff --git a/file.changes b/file.changes index b80095e..00fea05 100644 --- a/file.changes +++ b/file.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 19 09:30:38 UTC 2014 - pgajdos@suse.com + +- correctly identify GDBM files created by libgdbm4 [bnc#888308] + * add file-5.19-gdbm.patch + ------------------------------------------------------------------- Mon Aug 18 17:05:34 UTC 2014 - werner@suse.de diff --git a/file.spec b/file.spec index def8dad..307a7f4 100644 --- a/file.spec +++ b/file.spec @@ -63,6 +63,7 @@ Patch34: file-5.18-endian.patch Patch35: file-5.12-nitpick.dif Patch36: file-5.15-clear-invalid.patch Patch37: file-secure_getenv.patch +Patch38: file-5.19-gdbm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _miscdir %{_datadir}/misc @@ -129,6 +130,7 @@ to develop applications that require the magic "file" interface. %patch35 -p0 -b .nitpick %patch36 -p1 -b .clear %patch37 -p1 -b .getenv +%patch38 -p0 -b .gdbm %patch -b .0 test -s src/magic.h.in || cp -p src/magic.h src/magic.h.in