- Update to 5.42:
* PR/348: add missing cases to prevent file from aborting on
random magic files.
* PR/351: octalify filenames when not raw before printing.
* fix regex cacheing bug (Dirk Mueller)
* merge file_regcomp and file_regerror() to simplify the code
and reduce memory requirements for storing regexes (Dirk Mueller)
* cache regex (Dirk Mueller)
* detect filesystem full by flushing output (Dirk Mueller)
* implement running decompressor programs using
posix_spawnp(2) instead of vfork(2)
* Add support for msdos dates and times
* use the system byte swapping functions if available (Werner Fink)
- Port patches
* file-5.17-option.dif
* file-5.19-biorad.dif
* file-5.19-printf.dif
* file-5.19-zip2.0.dif
* file-5.28-btrfs-image.dif
* file-secure_getenv.patch
- Remove patches now upstream
* file-5.23-endian.patch
* file-5.41-cache-regexps-locale-restore.patch
* file-5.41-cache-regexps.patch
- Port and rename patch file-5.41.dif which is now file-5.42.dif
OBS-URL: https://build.opensuse.org/request/show/982386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=128
- Reenable libseccomp sandboxing
- Fix previous entry: remove stray pkg-config call in CFLAGS (as it
was called without parameters, it only made output on stderr,
which did not impact CFLAGS; so de facto only a cleanup change).
- Drop pkgconfig(libseccomp) BuildRequires and stop injecting
libseccomp cflags into CFLAGS: libseccomp has been disabled for a
long time already.
- Move the special 'check' part from install to %check.
- Remove file-5.38-allow-readlinkat.dif as already done in latest
file 5.41
OBS-URL: https://build.opensuse.org/request/show/957248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=124
- Remove file-5.38-allow-readlinkat.dif as already doen in latest
file 5.41
- Update to 5.41:
* Avinash Sonawane: Fix tzname detection
* Fix relationship tests with "search" magic, don't short circuit
logic
* Fix memory leak in compile mode
* PR/272: kiefermat: Only set returnval = 1 when we printed something
(in all cases print or !print). This simplifies the logic and fixes
the issue in the PR with -k and --mime-type there was no continuation
printed before the default case.
* PR/270: Don't translate unprintable characters in %s magic formats
when -r
* PR/269: Avoid undefined behavior with clang (adding offset to NULL)
* Add a new flag (f) that requires that the match is a full word,
not a partial word match.
* Add varint types (unused)
* PR/256: mutableVoid: If the file is less than 3 bytes, use the file
length to determine type
* PR/259: aleksandr.v.novichkov: mime printing through indirect magic
is not taken into account, use match directly so that it does.
- Remove patches now upstream
* file-5.40-1c677c04.patch
* file-5.40-3096f87f.patch
* file-5.40-4c5fe1ad.patch
* file-5.40-6b34436a.patch
* file-5.40-749e1ecf.patch
* file-5.40-9b0459af.patch
* file-5.40-9e2becec.patch
OBS-URL: https://build.opensuse.org/request/show/926661
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=123
- Add patch file-5.40-ascii.patch
* fix regressions on dection of smaller ASCII files (boo#1184899)
- Add upstream comitts as patches
* file-5.40-9b0459af.patch
put attributes inside the xz magic. (boo#1184888, boo#1184891)
* file-5.40-749e1ecf.patch
If the file is less than 3 bytes, use the file length to determine type
* file-5.40-f0601504.patch
Fix regression after unsigned/signed printing changes
* file-5.40-f7705dca.patch
fix previous (cast >>)
* file-5.40-3096f87f.patch
Correct return values to exptexted
* file-5.40-4c5fe1ad.patch
Add missing parens
- Port patch
* file-5.28-btrfs-image.dif
due patch file-5.40-f0601504.patch
- Add upstream commits as patches
* file-5.40-1c677c04.patch
Don't count each byte encounter as 1, count the total number
of bytes found (Anatol Belski). This makes it behave like 5.39
* file-5.40-6b34436a.patch
remove "u" from the pattern (Joerg Jenderek)
* file-5.40-9e2becec.patch
Encoding bug fix
- Fix offsets of patches
* file-5.17-option.dif
OBS-URL: https://build.opensuse.org/request/show/888046
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=122
- Add upstream commit 85b7ab832 as patch file-5.39-alternate_format.dif
to also allow alternate format switch '#'
- Replace patch file-5.38.dif with file-5.39.dif
- Update to 5.39
* Remove unused subtype_mime (Steve Grubb)
* Remove unused check in okstat (Steve Grubb)
* Fix mime-type in elf binaries by making sure $x is set
* Fix indirect negative offsets broken by OFFNEGATIVE
* Fix GUID equality check
* PR/165: Handle empty array and strings in JSON
* PR/162: Add --exclude-quiet
* Various fixes
* add guid support
- Removed undo-24c9c0.patch as it is now part of upstream
- Updated file-5.17-option.dif
- Update to 5.39
OBS-URL: https://build.opensuse.org/request/show/818050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=120
- Update to 5.39
* Remove unused subtype_mime (Steve Grubb)
* Remove unused check in okstat (Steve Grubb)
* Fix mime-type in elf binaries by making sure $x is set
* Fix indirect negative offsets broken by OFFNEGATIVE
* Fix GUID equality check
* PR/165: Handle empty array and strings in JSON
* PR/162: Add --exclude-quiet
* Various fixes
* add guid support
- Removed undo-24c9c0.patch as it is now part of upstream
- Updated file-5.17-option.dif
OBS-URL: https://build.opensuse.org/request/show/815549
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=214
- Looks like libseccomp filter stumble over decompressors like
xz (without liblmza) or zstd hence disable it (boo#1160649)
- Require at build devel packages for liblzma and libbz2
- file-5.38-allow-readlinkat.dif: allow readlinkat() systemcall,
reenable sandboxing. (bsc#1160303)
- Currently file command receives SIGSYS/31 with sandboxing enabled
via libseccomp
OBS-URL: https://build.opensuse.org/request/show/764572
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=117
- Require pkgconfig(libseccomp) to enable the sandboxing feature
- Update to file version 5.38
* Always accept -S (no sandbox) even if we don't support sandboxing
* More syscalls elided for sandboxiing
* For ELF dynamic means having an interpreter not just PT_DYNAMIC
* Check for large ELF session header offset
* When saving and restoring a locale, keep the locale name in our
own storage.
* Add a flag to disable CSV file detection.
* Don't pass NULL/0 to memset to appease sanitizers.
* Avoid spurious prints when looks for extensions or apple strings
in fsmagic.
* Add builtin decompressors for xz and and bzip.
* Add a limit for the number of CDF elements.
* More checks for overflow in CDF.
- Removed patches fixed upstream
* CVE-2019-18218-46a8443f.patch
* file-5.15-clear-invalid.patch
* file-upstream.patch
- Modify patches
* file-5.12-zip.dif
* file-5.16-ocloexec.patch
* file-5.17-option.dif
* file-5.19-biorad.dif
* file-5.19-printf.dif
* file-5.19-zip2.0.dif
* file-5.23-endian.patch
* file-5.24-nitpick.dif
* file-5.28-btrfs-image.dif
OBS-URL: https://build.opensuse.org/request/show/758529
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=116