(upstream) PR/386: Add newlines for consitency 2Obtained from: https://github.com/file/file/pull/134/(cherry picked from commit 3347078000c078f2e67214ef1ba2e0bffe1aea4f)
file_test: Fix file testTrimming of the line feed is no longer necessary afterhttps://github.com/file/file/commit/d993c6b0db20711b2c4cb9d2bee8c7f2e59b0a43Currently the tests: - bcachefs2 -
file_test: Fix file testTrimming of the line feed is no longer necessary afterhttps://github.com/file/file/commit/d993c6b0db20711b2c4cb9d2bee8c7f2e59b0a43Currently the tests: - bcachefs2 - gpkg-1-zst - multipleare failing, but a fix will be committed upstream.This also reverts c5e957ad4 "file: fix test case for gpkg by removing the extra \n."MFC after: 3 days(cherry picked from commit 0d3a87569f14b0e48826bbaab5e05f35669bcebf)
show more ...
MFC: MFV: file 5.45.(cherry picked from commit 898496ee09ed2b7d25f6807edc4515628196ec0a)Disable byteswap.h for now.(cherry picked from commit 90474518912f5e5f49bc5325b7f88e94eba64d6a)
MFV: Restore the ability to process files from stdin immediately.PR: bin/267221MFC after: 3 days
file: fix test case for gpkg by removing the extra \n.MFC after: 3 days
file: upgrade to 5.43.MFC after: 3 days
MFV: cherry-pick "PR/358: Fix width for -f - (jpalus)"MFC after: 1 weekPR: bin/266264
file: upgrade to 5.42.MFC after: 2 weeks
file: upgrade to 5.41.MFC after: 2 weeks
Revert r362261, "Re-apply r333944 to unbreak ports"A file update in 2018 broke many ports as it misidentified sharedlibraries as PIE binaries. r333944 reverted part of the change,restoring ports
Revert r362261, "Re-apply r333944 to unbreak ports"A file update in 2018 broke many ports as it misidentified sharedlibraries as PIE binaries. r333944 reverted part of the change,restoring ports builds but misidentifying objects in the oppositedirection.Earlier this month file 5.39 was imported, and then the changeoriginally from r333944 was recommitted as r362261. However, theissue was fixed upstream, so r362261 serves no purpose.PR: 246960, 247461 [exp-run]Sponsored by: The FreeBSD Foundation
Revert r362466Such change should not have happen without prior discussion and review.With hat: transitioning core
Improve wording to be more precise and clear.No functional change intended.s/Master Boot/Main Boot/ (also called MBR)MFC after: 1 weekSponsored by: Mellanox Technologies
Re-apply r333944 to unbreak ports
MFV r362254: file 5.39.MFC after: 2 weeks
MFV r357712: file 5.38.MFC after: 2 weeks
MFV r354798:Apply vendor fixes:06de62c Detect multiplication overflow when computing sector position46a8443 Limit the number of elements in a vector (found by oss-fuzz)Requested by: wenMFC af
MFV r354798:Apply vendor fixes:06de62c Detect multiplication overflow when computing sector position46a8443 Limit the number of elements in a vector (found by oss-fuzz)Requested by: wenMFC after: 3 daysSecurity: CVE-2019-18218
MFV r354582: file 5.37.MFC after: 3 days
[PowerPC64] Add ABI flags to 'file' magicThe distinction between ELF header version and OpenPOWER ELF ABI version isconfusing for most of people, so this adds text to "file" output to make itclea
[PowerPC64] Add ABI flags to 'file' magicThe distinction between ELF header version and OpenPOWER ELF ABI version isconfusing for most of people, so this adds text to "file" output to make itclear about which OpenPOWER ELF ABI version binary was built for.The strings used in this change are based on "64-Bit ELF V2 ABISpecification/3.1. ELF Header" document available athttp://openpowerfoundation.org/wp-content/uploads/resources/leabi/content/dbdoclet.50655241_97607.htmlExample:$ file t1-Flag2 -m -m contrib/file/magic/Magdir/elf t1-Flag2: ELF 64-bit MSBexecutable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI, version 1(FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD13.0 (1300033), FreeBSD-style, not strippedSubmitted by: alfredo.junior_eldorado.org.brReviewed by: luporlDifferential Revision: https://reviews.freebsd.org/D20771
file: update to 5.34PR: 230141exp-run by: antoine
Fix file(1) dumpdate reporting for dump(8) filesMagic file for dump(8) had this dump and previous dump dates reversed.Fix order for all three flavours of the dump(8) format.This fix was committed
Fix file(1) dumpdate reporting for dump(8) filesMagic file for dump(8) had this dump and previous dump dates reversed.Fix order for all three flavours of the dump(8) format.This fix was committed to upstream repo as magic/Magdir/dump,v 1.17and will be merged during next vendor import.PR: 223155MFC after: 2 weeks
Revert last change to file/magic/Magdir/elf, it misidentifies most sharedlibraries installed from ports as pie executables instead of shared libraries,and consequently breaks ports.
MFV: file 5.33Merge the latest file(1) in.Relevent Changelog:- extend the support for ${x?:} expansions for magic descriptions- add support for ${x?:} in mime types to handle pie binaries.- ad
MFV: file 5.33Merge the latest file(1) in.Relevent Changelog:- extend the support for ${x?:} expansions for magic descriptions- add support for ${x?:} in mime types to handle pie binaries.- add support for negative offsets (offsets from the end of file)- close the file on error when writing magicRelnotes: yes
MFV r323678: file 5.32Approved by: emaste (mentor)MFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D12400
Fix an incorrectly used conditional causing a stack buffer overflow.Reported by: Thomas Jarosch of Intra2net AGReviewed by: emaste, jhbSecurity: CVE-2017-1000249
MFV r308392: file 5.29.MFC after: 2 weeks
123