Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ci: Add a codecov.io workflow | Tavian Barnes | 2021-09-28 | 1 | -0/+31 |
| | |||||
* | Don't truncate files until we know they're not duplicates | Tavian Barnes | 2021-09-26 | 8 | -68/+115 |
| | |||||
* | util: New xfopen() utility | Tavian Barnes | 2021-09-21 | 5 | -3/+58 |
| | | | | | 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. | ||||
* | README: Fix a broken link to the NetBSD find manpage | Tavian Barnes | 2021-09-21 | 1 | -1/+1 |
| | |||||
* | ctx: Also deduplicate the standard streams | Tavian Barnes | 2021-09-21 | 6 | -41/+177 |
| | | | | | | 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. | ||||
* | Merge pull request #80 from a1346054/fixes | Tavian Barnes | 2021-09-20 | 1 | -4/+2 |
|\ | | | | | Remove completion hashbang | ||||
| * | Trim excess whitespace | a1346054 | 2021-09-20 | 1 | -1/+1 |
| | | |||||
| * | Avoid using a misleading hashbang | a1346054 | 2021-09-20 | 1 | -3/+1 |
|/ | | | | | For consistency with other completion scripts and to silence warnings such as https://lintian.debian.org/tags/bash-completion-with-hashbang | ||||
* | Fix the order of -fprintf FILE FORMAT in the docs | Tavian Barnes | 2021-09-15 | 2 | -2/+2 |
| | |||||
* | tests: Make the -files0-from tests weirder | Tavian Barnes | 2021-09-15 | 3 | -103/+65 |
| | |||||
* | Implement -files0-from FILE | Tavian Barnes | 2021-09-15 | 6 | -4/+240 |
| | | | | | See https://savannah.gnu.org/bugs/?60383 for the development of the corresponding GNU find feature. | ||||
* | util: Wrap getdelim() instead of open coding it | Tavian Barnes | 2021-09-15 | 2 | -27/+34 |
| | |||||
* | spawn: Plug some leaks on error paths | Tavian Barnes | 2021-09-15 | 1 | -0/+2 |
| | |||||
* | eval: Remove an extra space from -ls output | Tavian Barnes | 2021-09-02 | 1 | -1/+1 |
| | |||||
* | eval: Use 512-byte blocks for -ls when POSIXLY_CORRECT is set | Tavian Barnes | 2021-09-02 | 4 | -4/+10 |
| | | | | | This matches the behaviour of GNU find, and allows bfs to match the output of BSD find as well. Fixes #77. | ||||
* | Use /usr/bin/env bash as the shebang in scripts | Tavian Barnes | 2021-08-05 | 7 | -7/+7 |
| | | | | This should reduce the need for patches on the BSDs. | ||||
* | expr: Remove unneeded forward declaration of struct expr | Tavian Barnes | 2021-07-27 | 1 | -5/+3 |
| | |||||
* | color: Fix a leak on unknown color keys | Tavian Barnes | 2021-06-16 | 1 | -2/+7 |
| | | | | Previously reproducible with LS_COLORS="asdf=0" bfs. | ||||
* | 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. | ||||
* | spawn: New function for resolving executables in the PATH | Tavian Barnes | 2021-06-13 | 2 | -17/+91 |
| | | | | | This fixes the BFS_SPAWN_USEPATH to use the parent's environment, not the new child's environment, to resolve the executable. | ||||
* | spawn: Allow NULL envp for the current environment | Tavian Barnes | 2021-06-13 | 3 | -2/+8 |
| | |||||
* | util: New xconfstr() wrapper | Tavian Barnes | 2021-06-13 | 2 | -0/+29 |
| | |||||
* | util: Rename fallthrough to BFS_FALLTHROUGH | Tavian Barnes | 2021-06-09 | 4 | -15/+15 |
| | | | | This avoids shadowing the actually standard name fallthrough. | ||||
* | util: Avoid warnings on older compilers with fallthrough | Tavian Barnes | 2021-06-09 | 1 | -3/+9 |
| | |||||
* | Release 2.2.12.2.1 | Tavian Barnes | 2021-06-02 | 3 | -2/+23 |
| | |||||
* | Implement time units for -{a,B,c,m}time | Tavian Barnes | 2021-06-02 | 5 | -14/+102 |
| | | | | From FreeBSD find. Closes #75. | ||||
* | Enable -Wimplicit-fallthrough | Tavian Barnes | 2021-06-02 | 4 | -7/+28 |
| | |||||
* | eval: Raise RLIMIT_NOFILE if possible | Tavian Barnes | 2021-05-20 | 4 | -11/+62 |
| | | | | | | This lets us keep more open FDs cached in bftw(). The limit is lowered before running -exec commands, in case they're incompatible with a high limit (e.g. due to select()). | ||||
* | spawn: New bfs_spawn_addsetrlimit() action | Tavian Barnes | 2021-05-20 | 2 | -0/+27 |
| | |||||
* | Use `<< {10,20,...}` instead of `*1024*1024...` | Tavian Barnes | 2021-05-20 | 2 | -6/+6 |
| | |||||
* | tests: Don't use -perm /MODE in POSIX tests | Tavian Barnes | 2021-05-20 | 1 | -2/+2 |
| | |||||
* | ci/freebsd: Use the official tailscale GitHub action | Tavian Barnes | 2021-05-18 | 1 | -13/+4 |
| | |||||
* | ci/freebsd: Use `tailscale ip` instead of hardcoding it | Tavian Barnes | 2021-05-18 | 1 | -3/+4 |
| | |||||
* | ci/freebsd: Don't run multiple jobs at once | Tavian Barnes | 2021-05-17 | 1 | -0/+2 |
| | |||||
* | ci/freebsd: Work around https://github.com/tailscale/tailscale/issues/1889 | Tavian Barnes | 2021-05-17 | 1 | -3/+4 |
| | |||||
* | ci/freebsd: Use an ephemeral Tailscale key | Tavian Barnes | 2021-05-17 | 1 | -7/+11 |
| | | | | There should be no need for the shared machine key any more. | ||||
* | tests: Optimize test_delete_many() | Tavian Barnes | 2021-04-18 | 1 | -1/+2 |
| | |||||
* | tests: Don't fail -flags test if we can't set flags | Tavian Barnes | 2021-04-18 | 1 | -4/+2 |
| | |||||
* | tests: Don't fail xattr tests if we can't set xattrs at all | Tavian Barnes | 2021-04-18 | 1 | -29/+17 |
| | |||||
* | tests: Add a test for deleting large directories | Tavian Barnes | 2021-04-18 | 2 | -0/+13 |
| | | | | This serves as a test for https://github.com/tavianator/bfs/issues/67 | ||||
* | util: Tweak the safe read/write functions | Tavian Barnes | 2021-04-15 | 4 | -59/+49 |
| | |||||
* | Merge pull request #73 from markus-oberhumer/safe-read-write | Tavian Barnes | 2021-04-15 | 4 | -18/+80 |
|\ | |||||
| * | util: add safe_read_all() and safe_write_all() functions. | Markus F.X.J. Oberhumer | 2021-04-15 | 4 | -13/+48 |
| | | |||||
| * | util: introduce safe versions of read & write that handle interrupted | Markus F.X.J. Oberhumer | 2021-04-15 | 4 | -8/+35 |
|/ | | | | systems calls. | ||||
* | Merge pull request #72 from markus-oberhumer/allow-empty-less-envvar | Tavian Barnes | 2021-04-14 | 1 | -7/+12 |
|\ | | | | | parse: launch_pager(): set the LESS environment variable if it is empty. | ||||
| * | parse: launch_pager(): set the LESS environment variable if it is empty. | Markus F.X.J. Oberhumer | 2021-04-14 | 1 | -7/+12 |
|/ | |||||
* | Merge pull request #70 from markus-oberhumer/fix-ci-freebsd | Tavian Barnes | 2021-04-14 | 1 | -1/+1 |
|\ | | | | | CI: try to fix freebsd once again. | ||||
| * | CI: try to fix freebsd once again. | Markus F.X.J. Oberhumer | 2021-04-14 | 1 | -1/+1 |
|/ | |||||
* | ci/freebsd: Don't skip non-pull-request events | Tavian Barnes | 2021-04-13 | 1 | -1/+1 |
| | |||||
* | Merge pull request #69 from markus-oberhumer/fix-launch-pager-v2 | Tavian Barnes | 2021-04-13 | 2 | -1/+3 |
|\ |