summaryrefslogtreecommitdiff
path: root/usr.bin/file/magic-load.c
AgeCommit message (Expand)Author
2017-07-02Replace fgetln with POSIX getline, even though file was using fgetln inBryan Steele
2017-07-01magicfp is fclosed where it was opened, remove fclose from magic_load()Bryan Steele
2017-04-18Style nits; no binary change.Nicholas Marriott
2016-05-01Exact match use and name with strcmp rather than prefix with strncmp.Nicholas 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-01Add support for 'clear' test, and fix 'default' to expand the resultNicholas Marriott
2015-11-15When validating a char by calling strchr() with a string of allowed chars,Tobias Stoeckmann
2015-10-05Add support for !:strength modifier to adjust strength of a test.Nicholas Marriott
2015-08-11Only warn about [bl]estring16 when they are used, like the otherNicholas Marriott
2015-08-11Any type can be prefixed with "u", even where it makes no sense. AlsoNicholas Marriott
2015-08-11Warn sensibly for unrecognised !: lines rather than trying to parse them.Nicholas Marriott
2015-08-11Actually leave the invalid ml in the tree after making it type NONE.Nicholas Marriott
2015-08-11An invalid line can't just be thrown away because if it has any childrenNicholas Marriott
2015-08-11Extend accepted operators to +-&/%* for integer tests.Nicholas Marriott
2015-08-11Support = test for floats and doubles.Nicholas Marriott
2015-08-11If we are expecting a signed number but it fails, try to parse it asNicholas Marriott
2015-08-11Allow spaces around any operator, not just =.Nicholas Marriott
2015-08-11Include more context in warnings where it is possible.Nicholas Marriott
2015-08-11Add another function for printing warnings before the magic_line isNicholas Marriott
2015-07-08Do not allow '\0' as an offset operator or type.Tobias Stoeckmann
2015-05-29I got confused and made the strength multiplier 20, it should be 10.Nicholas Marriott
2015-04-25Only print MIME warnings when warnings are enabled.Nicholas Marriott
2015-04-25Fail if a \ appears at EOL rather than continuing off the end of theNicholas Marriott
2015-04-24Add a couple of missing spaces (style nits).Nicholas Marriott
2015-04-24New implementation of the file(1) utility. This is a simplified,Nicholas Marriott