Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | parse: Fix UAF + double-free when ftruncate() fails | Tavian Barnes | 2021-10-19 | 1 | -5/+8 |
| | |||||
* | tests: Add tests for parsing invalid integers | Tavian Barnes | 2021-10-01 | 1 | -4/+20 |
| | | | | And give some better error messages. | ||||
* | Don't truncate files until we know they're not duplicates | Tavian Barnes | 2021-09-26 | 1 | -13/+32 |
| | |||||
* | util: New xfopen() utility | Tavian Barnes | 2021-09-21 | 1 | -1/+1 |
| | | | | | And use it to pass O_CLOEXEC to all FILE*'s, so the files opened for -fprint etc. don't get passed to the programs run by -exec etc. | ||||
* | ctx: Also deduplicate the standard streams | Tavian Barnes | 2021-09-21 | 1 | -2/+19 |
| | | | | | | This fixes some potential missing output when the same file is used in a redirection and something like -fprint. The main benefit is smarter handling of /dev/stdout, which will now share the CFILE* with cout. | ||||
* | Fix the order of -fprintf FILE FORMAT in the docs | Tavian Barnes | 2021-09-15 | 1 | -1/+1 |
| | |||||
* | Implement -files0-from FILE | Tavian Barnes | 2021-09-15 | 1 | -4/+89 |
| | | | | | See https://savannah.gnu.org/bugs/?60383 for the development of the corresponding GNU find feature. | ||||
* | eval: Use 512-byte blocks for -ls when POSIXLY_CORRECT is set | Tavian Barnes | 2021-09-02 | 1 | -1/+3 |
| | | | | | This matches the behaviour of GNU find, and allows bfs to match the output of BSD find as well. Fixes #77. | ||||
* | parse: More -help pager improvements | Tavian Barnes | 2021-06-13 | 1 | -39/+24 |
| | | | | | | | | | | If $PAGER is unset, we now try less if it exists, then fall back to more. Colors are only used if less is the used pager, since more on non-coreutils platforms doesn't always handle colors. Finally, less's configuration is given on the command line, which works better if the user has $LESS already set. Fixes https://github.com/tavianator/bfs/issues/76. | ||||
* | util: Rename fallthrough to BFS_FALLTHROUGH | Tavian Barnes | 2021-06-09 | 1 | -9/+9 |
| | | | | This avoids shadowing the actually standard name fallthrough. | ||||
* | Implement time units for -{a,B,c,m}time | Tavian Barnes | 2021-06-02 | 1 | -11/+84 |
| | | | | From FreeBSD find. Closes #75. | ||||
* | Enable -Wimplicit-fallthrough | Tavian Barnes | 2021-06-02 | 1 | -5/+5 |
| | |||||
* | parse: launch_pager(): set the LESS environment variable if it is empty. | Markus F.X.J. Oberhumer | 2021-04-14 | 1 | -7/+12 |
| | |||||
* | parse: check if PAGER environment variable is empty. | Markus F.X.J. Oberhumer | 2021-04-13 | 1 | -1/+1 |
| | |||||
* | Support -flags on all the BSDs | Tavian Barnes | 2021-03-06 | 1 | -26/+9 |
| | |||||
* | Implement -flags, from FreeBSD find | Tavian Barnes | 2021-03-06 | 1 | -0/+55 |
| | | | | This is the last BSD-specific primary I'm aware of. Fixes #14. | ||||
* | Update copyright dates | Tavian Barnes | 2021-02-05 | 1 | -1/+1 |
| | |||||
* | dir: New DIR* facade | Tavian Barnes | 2021-01-28 | 1 | -10/+11 |
| | |||||
* | parse: Fix the token type of -nowarn | Tavian Barnes | 2021-01-24 | 1 | -1/+1 |
| | |||||
* | -perm: Use +t instead of ug+t | Tavian Barnes | 2021-01-13 | 1 | -2/+4 |
| | | | | | | | | | The chmod spec says that ug+t is unspecified, and only +t or a+t is guaranteed to actually set the sticky bit. In practice GNU tools respect o+t as well, but ignore u+t/g+t. Fix the implementation to match GNU, and only test the POSIX required parse. | ||||
* | Give messages to unconditional assertion failures | Tavian Barnes | 2020-12-02 | 1 | -1/+1 |
| | |||||
* | parse: Clean up debug flag parsing/printing | Tavian Barnes | 2020-12-02 | 1 | -37/+22 |
| | |||||
* | parse: Don't pass an uninitialized regex_t to regerror() | Tavian Barnes | 2020-11-28 | 1 | -1/+1 |
| | |||||
* | Include what I use | Tavian Barnes | 2020-11-12 | 1 | -4/+3 |
| | | | | Thanks to https://github.com/include-what-you-use/include-what-you-use | ||||
* | New -status option to display a status bar | Tavian Barnes | 2020-11-03 | 1 | -3/+16 |
| | |||||
* | exec: Adjust some calling conventions | Tavian Barnes | 2020-10-06 | 1 | -3/+3 |
| | |||||
* | printf: Adjust some calling conventions | Tavian Barnes | 2020-10-06 | 1 | -3/+3 |
| | |||||
* | diag: New bfs_perror() function | Tavian Barnes | 2020-10-05 | 1 | -16/+23 |
| | |||||
* | parse: Fail if -color is passed and the colors couldn't be parsed | Tavian Barnes | 2020-10-04 | 1 | -0/+10 |
| | |||||
* | parse: More accurate error reporting for cfdup() | Tavian Barnes | 2020-10-04 | 1 | -1/+7 |
| | |||||
* | parse: Report errors when failing to add a root | Tavian Barnes | 2020-10-04 | 1 | -1/+5 |
| | |||||
* | Rename struct cmdline to bfs_ctx | Tavian Barnes | 2020-09-27 | 1 | -310/+172 |
| | | | | | The API remains similar, with some added accessor functions for lazy initialization of the pwcache and mtab. | ||||
* | stat: Rename bfs_stat_flag to _flags | Tavian Barnes | 2020-09-18 | 1 | -1/+1 |
| | | | | Flags enums should be plural. | ||||
* | Implement -xattrname | Tavian Barnes | 2020-08-13 | 1 | -0/+20 |
| | | | | From macOS find. | ||||
* | bftw: Make some flag names more explicit | Tavian Barnes | 2020-07-29 | 1 | -15/+15 |
| | |||||
* | bftw: Rename bftw_typeflag to bftw_type, and make it not a bitmask | Tavian Barnes | 2020-07-29 | 1 | -4/+5 |
| | |||||
* | Implement exponential deepening search | Tavian Barnes | 2020-06-16 | 1 | -3/+10 |
| | |||||
* | parse: Color the optimization level differently in dump_cmdline() | Tavian Barnes | 2020-06-07 | 1 | -1/+1 |
| | |||||
* | opt: Dump the command line before optimizing with -D opt | Tavian Barnes | 2020-06-07 | 1 | -2/+2 |
| | |||||
* | parse: Prohibit actions inside -exclude | Tavian Barnes | 2020-06-07 | 1 | -1/+19 |
| | |||||
* | Treat -nohidden like -exclude -hidden | Tavian Barnes | 2020-06-07 | 1 | -7/+21 |
| | | | | Fixes #30. | ||||
* | Implement -exclude, a special form for convenient exclusions | Tavian Barnes | 2020-06-07 | 1 | -0/+31 |
| | | | | Fixes #8. | ||||
* | diag: Unify debug printing | Tavian Barnes | 2020-06-02 | 1 | -53/+18 |
| | |||||
* | opt: Track data flow information about predicates | Tavian Barnes | 2020-05-22 | 1 | -2/+2 |
| | | | | | | | | | | This allows us to optimize things like -sparse -o -not -sparse <==> -true and -sparse -a -not -sparse <==> -false | ||||
* | pwcache: Rename from passwd.[ch] | Tavian Barnes | 2020-04-22 | 1 | -1/+1 |
| | |||||
* | parse: Use the right color when suggesting typo fixes | Tavian Barnes | 2020-03-21 | 1 | -113/+126 |
| | |||||
* | parse: Add -X and -s to -D tree output | Tavian Barnes | 2020-03-21 | 1 | -17/+26 |
| | |||||
* | Implement -s flag from FreeBSD find to sort results | Tavian Barnes | 2020-03-21 | 1 | -0/+11 |
| | |||||
* | parse: Fix color code with -D tree -xdev | Tavian Barnes | 2020-03-20 | 1 | -1/+1 |
| | |||||
* | parse: Prettify some errors and warnings | Tavian Barnes | 2020-03-20 | 1 | -51/+57 |
| |