summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-08-05Use /usr/bin/env bash as the shebang in scriptsTavian Barnes
This should reduce the need for patches on the BSDs.
2021-07-27expr: Remove unneeded forward declaration of struct exprTavian Barnes
2021-06-16color: Fix a leak on unknown color keysTavian Barnes
Previously reproducible with LS_COLORS="asdf=0" bfs.
2021-06-13parse: More -help pager improvementsTavian Barnes
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.
2021-06-13spawn: New function for resolving executables in the PATHTavian Barnes
This fixes the BFS_SPAWN_USEPATH to use the parent's environment, not the new child's environment, to resolve the executable.
2021-06-13spawn: Allow NULL envp for the current environmentTavian Barnes
2021-06-13util: New xconfstr() wrapperTavian Barnes
2021-06-09util: Rename fallthrough to BFS_FALLTHROUGHTavian Barnes
This avoids shadowing the actually standard name fallthrough.
2021-06-09util: Avoid warnings on older compilers with fallthroughTavian Barnes
2021-06-02Release 2.2.12.2.1Tavian Barnes
2021-06-02Implement time units for -{a,B,c,m}timeTavian Barnes
From FreeBSD find. Closes #75.
2021-06-02Enable -Wimplicit-fallthroughTavian Barnes
2021-05-20eval: Raise RLIMIT_NOFILE if possibleTavian Barnes
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()).
2021-05-20spawn: New bfs_spawn_addsetrlimit() actionTavian Barnes
2021-05-20Use `<< {10,20,...}` instead of `*1024*1024...`Tavian Barnes
2021-05-20tests: Don't use -perm /MODE in POSIX testsTavian Barnes
2021-05-18ci/freebsd: Use the official tailscale GitHub actionTavian Barnes
2021-05-18ci/freebsd: Use `tailscale ip` instead of hardcoding itTavian Barnes
2021-05-17ci/freebsd: Don't run multiple jobs at onceTavian Barnes
2021-05-17ci/freebsd: Work around https://github.com/tailscale/tailscale/issues/1889Tavian Barnes
2021-05-17ci/freebsd: Use an ephemeral Tailscale keyTavian Barnes
There should be no need for the shared machine key any more.
2021-04-18tests: Optimize test_delete_many()Tavian Barnes
2021-04-18tests: Don't fail -flags test if we can't set flagsTavian Barnes
2021-04-18tests: Don't fail xattr tests if we can't set xattrs at allTavian Barnes
2021-04-18tests: Add a test for deleting large directoriesTavian Barnes
This serves as a test for https://github.com/tavianator/bfs/issues/67
2021-04-15util: Tweak the safe read/write functionsTavian Barnes
2021-04-15Merge pull request #73 from markus-oberhumer/safe-read-writeTavian Barnes
2021-04-15util: add safe_read_all() and safe_write_all() functions.Markus F.X.J. Oberhumer
2021-04-15util: introduce safe versions of read & write that handle interruptedMarkus F.X.J. Oberhumer
systems calls.
2021-04-14Merge pull request #72 from markus-oberhumer/allow-empty-less-envvarTavian Barnes
parse: launch_pager(): set the LESS environment variable if it is empty.
2021-04-14parse: launch_pager(): set the LESS environment variable if it is empty.Markus F.X.J. Oberhumer
2021-04-14Merge pull request #70 from markus-oberhumer/fix-ci-freebsdTavian Barnes
CI: try to fix freebsd once again.
2021-04-14CI: try to fix freebsd once again.Markus F.X.J. Oberhumer
2021-04-13ci/freebsd: Don't skip non-pull-request eventsTavian Barnes
2021-04-13Merge pull request #69 from markus-oberhumer/fix-launch-pager-v2Tavian Barnes
2021-04-13parse: check if PAGER environment variable is empty.Markus F.X.J. Oberhumer
2021-04-13ci/freebsd: only run if we are the correct repository owner.Markus F.X.J. Oberhumer
2021-03-31README: Remove repology badgeTavian Barnes
2021-03-28ci/freebsd: Set the hostname explicitlyTavian Barnes
2021-03-28README: Add a FreeBSD badgeTavian Barnes
2021-03-28ci: Add a FreeBSD buildTavian Barnes
2021-03-28test: Add more tests for -H/-L and -type lTavian Barnes
2021-03-28fsade: Fix msan false positive in bfs_check_acl_type()Tavian Barnes
2021-03-28ci: Switch to GitHub ActionsTavian Barnes
2021-03-23tests: Actually remove capabilities after dropping themTavian Barnes
2021-03-22tests: Avoid looping forever when failing to drop capabilitiesTavian Barnes
Link: https://github.com/void-linux/void-packages/pull/29437/checks?check_run_id=2169825021
2021-03-21util: Fix build on GNU HurdTavian Barnes
Hurd apparently #defines BSD, but doesn't profide strtofflags. So make all that code conditional on !__GNU__. Link: https://buildd.debian.org/status/fetch.php?pkg=bfs&arch=hurd-i386&ver=2.2-1&stamp=1615370700&raw=0
2021-03-21tests: Drop capabilities when run as root on LinuxTavian Barnes
bfs's tests rely on file permissions being enforced, which leads them to work incorrectly when run as root. This is probably the most common packaging issue for bfs, most recently seen with Void Linux's update to bfs 2.2. Make it easier on packagers by using capsh, if it's available, to drop the DAC privileges for the tests. Link: https://github.com/void-linux/void-packages/pull/29437#issuecomment-798670288 Link: https://salsa.debian.org/lamby/pkg-bfs/-/commit/b173efb35da126adb39b0984219d6a2fd9ff428f
2021-03-10bftw: Fix bftw_type() for broken links and BFS_STAT_FOLLOWTavian Barnes
This fixes link target coloring for broken links with -L.
2021-03-06RELEASES.md: We made it to 2021, actuallyTavian Barnes