summaryrefslogtreecommitdiff
path: root/usr.bin/file
AgeCommit message (Expand)Author
2015-08-23Need to permit kbind in this sandbox tooPhilip Guenther
2015-08-12Support + and - for dates.Nicholas Marriott
2015-08-12Fix adjustment of the offset when string, pstring or search match.Nicholas Marriott
2015-08-12Add string/Ww as aliases for string/Bb, and ignore t. (The latestNicholas Marriott
2015-08-11Only warn about [bl]estring16 when they are used, like the otherNicholas Marriott
2015-08-11When an exact string match is found, only print the test string, not upNicholas 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-11Accept hexadecimal numbers without 0x if they aren't a valid decimalNicholas 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-30note that symlinks are not followed by default;Jason McIntyre
2015-07-20Remove leftover xfree() prototype.Nicholas Marriott
2015-07-12Keep one byte for terminating '\0'.Tobias Stoeckmann
2015-07-08Properly handle files >= 4 GB on 32 bit architectures.Tobias Stoeckmann
2015-07-08Do not allow '\0' as an offset operator or type.Tobias Stoeckmann
2015-06-17Use strdup in xstrdup from Fritjof Bornebusch. While here, remove xfreeNicholas Marriott
2015-06-04systrace(4) STRIOCATTACH can only fail for file(1) if it is alreadyNicholas Marriott
2015-05-30Support - to read from stdin, from Sebastien Marie.Nicholas Marriott
2015-05-29millert points out I can just call tzset() early to avoid having toNicholas Marriott
2015-05-29Use gmtime not localtime when we want UTC, I got it right in one placeNicholas Marriott
2015-05-29Don't stop at the first successful test unless it has generated someNicholas Marriott
2015-05-29The case-insensitive flag (c) for string and search tests doesn't makeNicholas Marriott
2015-05-29I got confused and made the strength multiplier 20, it should be 10.Nicholas Marriott
2015-05-29file(1) needs access(/etc/localtime) for localtime().Nicholas Marriott
2015-05-29Only mmap() on regular files; mmap() on /dev/stdin will happily map asNicholas Marriott
2015-05-29Make things a little less confusing by making fill_buffer self-containedNicholas Marriott
2015-05-29If reading into buffer, correct the stored file size at EOF, we don'tNicholas Marriott
2015-05-29Silently fall back to /etc/magic if ~/.magic can't be opened, ok deraadt stspNicholas Marriott
2015-05-28probably makes more sense to show "file" as being mandatory;Jason McIntyre
2015-05-18No longer need tricks with setvbuf(). Instead, we just give permissionTheo de Raadt
2015-04-30Add a comment about waitpid, suggested by espie@.Nicholas Marriott
2015-04-30Tweak comment so it doesn't imply line buffering is needed (any will doNicholas Marriott
2015-04-29the non braced do while made my teeth hurtTheo de Raadt
2015-04-28Add a missing free in the error path.Lawrence Teo
2015-04-27Use a systrace(4) sandbox with a short whitelist of allowed syscalls forNicholas Marriott
2015-04-27Add a _file user and use for privsep, ok deraadtNicholas Marriott
2015-04-27Add simple privilege separation to file(1). Two processes, fileNicholas Marriott
2015-04-27remove some extraneous text; ok nicmJason McIntyre
2015-04-26Don't support -s on FIFOs, it doesn't work well and the workarounds areNicholas Marriott
2015-04-26stat() the original link path not the resolved one which may be relative.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-25Switch to using the POSIX endian macros, i.e: be64toh vs. betoh64.Bryan Steele