summaryrefslogtreecommitdiff
path: root/usr.bin/file
AgeCommit message (Expand)Author
3 daysConvert sbin and usr.bin to check for imsgbuf_init failure and addClaudio Jeker
3 daysImplement the recv_imsg/read_message function in the correct way.Claudio Jeker
3 daysJust use the new better imsg APIClaudio Jeker
4 daysRename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush toClaudio Jeker
2024-01-16Use imsg_get_fd() and adjust cleanup code accordingly.Claudio Jeker
2022-12-26spelling fixes; from paul tagliamonteJason McIntyre
2021-04-28Add RISC-V elf executable detection.Dale Rahn
2021-01-23recognize those ubiquitous webp fileMarc Espie
2020-11-14remove macro instances from arbitrary string width specifiers. for exampleJason McIntyre
2019-11-30After fork(2) the pledge(2) in the parent proc can be reduced toRicardo Mestre
2019-06-28asprintf returns -1, not an arbitrary value < 0. Also upon error theTheo de Raadt
2019-02-05dev_t is signed to permit passing -1 as an invalid condition, but theTheo de Raadt
2019-01-15Regex flags should include REG_NEWLINE and REG_ICASE should actually beNicholas Marriott
2019-01-06the parent process doesn't do much but open files, but just the sameTed Unangst
2018-10-04Update qcow file definitionsccardenas
2018-06-14Return from magic_test does not need to be copied because the callerNicholas Marriott
2018-01-15Revert my changes in r1.60 back to nicm@'s latest for now.Bryan Steele
2017-11-30Default unknowns to application/octet-stream instead of x-not-regular-file.Anthony J. Bentley
2017-09-20add missing types; from klemens nanniJason McIntyre
2017-07-02Replace fgetln with POSIX getline, even though file was using fgetln inBryan Steele
2017-07-01close open fd after testing files, ensuring that fd isn't stdin.Bryan Steele
2017-07-01magicfp is fclosed where it was opened, remove fclose from magic_load()Bryan Steele
2017-06-28Fix stdin file read support, accidentally broken in my last commit.Bryan Steele
2017-06-28remove excess #includeTheo de Raadt
2017-06-28perform an initial pledge very early on, and drop tzset to later.Theo de Raadt
2017-06-28Simplify file(1) by removing the no longer necessary parent/child separationBryan Steele
2017-04-18Style nits; no binary change.Nicholas Marriott
2017-02-19Recognise AArch64 binaries and core dumps.Jonathan Gray
2016-08-26Pull in <time.h> for ctime_r, gmtime, etcPhilip Guenther
2016-06-12Remove old unused prototype, from Ilya Kaliman.Nicholas Marriott
2016-05-01Tidy up some #include lines.Nicholas Marriott
2016-05-01Exact match use and name with strcmp rather than prefix with strncmp.Nicholas Marriott
2016-05-01Use the right size (include the length byte) when working out if aNicholas Marriott
2016-05-01Add support for 'name' and 'use' which allows more of the latest magicNicholas Marriott
2016-05-01Trim = prefix from regex (it a noop).Nicholas Marriott
2016-05-01Remove __unused that are now lies.Nicholas Marriott
2016-05-01Add support for 'clear' test, and fix 'default' to expand the resultNicholas Marriott
2016-04-30magic_test_type_default parameter is no longer __unused.Nicholas Marriott
2016-04-30Fix the default type to work properly, that is to only match if noNicholas Marriott
2016-04-30Replace regex match string in results (some new magic entries use this).Nicholas Marriott
2016-04-28Partially sync magdir/sniffer from the file distribution on astron.com,Stuart Henderson
2016-04-24typos;Jason McIntyre
2016-03-06Sync 'archive' magic from file 5.25. Various improvements includingStuart Henderson
2016-03-04fix broken listDmitrij Czarkoff
2016-03-04fix typoDmitrij Czarkoff
2016-02-20Fix the C type used for 32-bit float/lefloat/befloat, it should be floatNicholas Marriott
2016-01-29Therefor -> Therefore (where appropriate)tb
2016-01-02Sync magdir/animation with file 5.25, amongst other updates this fixes anStuart Henderson
2015-12-24Add --brief and --dereference, used by xdg-open/xdg-mime.Jeremie Courreges-Anglas
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker