summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-06-07parse: Prohibit actions inside -excludeTavian Barnes
2020-06-07README: Remove unnecessary single quotes from exampleTavian Barnes
2020-06-07Treat -nohidden like -exclude -hiddenTavian Barnes
Fixes #30.
2020-06-07Implement -exclude, a special form for convenient exclusionsTavian Barnes
Fixes #8.
2020-06-07opt: Make sure facts_when_impure sees *all* impure literalsTavian Barnes
2020-06-02diag: Unify debug printingTavian Barnes
2020-05-22opt: Add missing #include <unistd.h>Tavian Barnes
2020-05-22opt: Track data flow information about predicatesTavian Barnes
This allows us to optimize things like -sparse -o -not -sparse <==> -true and -sparse -a -not -sparse <==> -false
2020-05-22Makefile: Pass -fsanitize-memory-track-origins for msan buildsTavian Barnes
2020-05-22Merge pull request #59 from rHermes/fix-spelling-in-fsadeTavian Barnes
Fix spelling mistake in fsade.h
2020-05-22Fix spelling mistake in fsade.hrHermes
2020-04-22Release 1.71.7Tavian Barnes
2020-04-22pwcache: Rename from passwd.[ch]Tavian Barnes
2020-03-24Makefile: Don't use target-specific variables for configuration targetsTavian Barnes
In things like release: CFLAGS := ... release: bfs CFLAGS is only set for the dependencies of release, so $ make release check doesn't set CFLAGS for tests/mksock. For the same reason, $ make asan ubsan was broken, because only the asan flags would be set for bfs. Fix it by checking MAKECMDGOALS for those targets manually instead.
2020-03-23Makefile: Add asan, msan, ubsan targetsTavian Barnes
2020-03-23Makefile: Use --sudo for every distcheck testTavian Barnes
2020-03-23opt: Avoid dangling pointers in de_morgan()Tavian Barnes
If optimize_{and,or}_expr() relocates expr, we need to update the parent expr or else we might return garbage. It seems impossible to actually trigger this bug right now, since the {and,or} optimizations are symmetric, but it could be hit if the simplifications in de_morgan() expose more information than was known previously.
2020-03-21parse: Use the right color when suggesting typo fixesTavian Barnes
2020-03-21parse: Add -X and -s to -D tree outputTavian Barnes
2020-03-21Implement -s flag from FreeBSD find to sort resultsTavian Barnes
2020-03-20bftw: Use a two-star approach to the bftw_queue linked listTavian Barnes
2020-03-20parse: Fix color code with -D tree -xdevTavian Barnes
2020-03-20parse: Prettify some errors and warningsTavian Barnes
2020-03-20parse: Prettify some of the option-specific helpTavian Barnes
2020-03-16Merge pull request #57 from tavianator/cirrusTavian Barnes
cirrus: Add a Cirrus CI build to test FreeBSD
2020-03-16cirrus: Add a Cirrus CI build to test FreeBSDTavian Barnes
Fixes #41.
2020-03-16fsade: Fix default ACL processing.Tavian Barnes
For default ACLs, any entries at all makes them non-trivial. C.f.: https://lists.freebsd.org/pipermail/posix1e/2014-July/000517.html
2020-03-15parse: Don't warn if POSIXLY_CORRECT is setTavian Barnes
2020-03-15exec: Warn if a command dies abnormallyTavian Barnes
2020-03-15diag: Make the -warn flag part of the cmdlineTavian Barnes
2020-03-02README: Put the binary package instructions firstTavian Barnes
2020-03-02README: Replace the screenshot with an animationTavian Barnes
2020-03-02passwd: Make earlier entries override later onesTavian Barnes
2020-03-01tests: Add a test for -printf %u/%g with a low ulimitTavian Barnes
2020-02-29passwd: Cache the user/group tablesTavian Barnes
This is a significant optimization for conditions that need these tables: Benchmark #1: ./bfs ~/code/linux -nouser >/dev/null Time (mean ± σ): 232.0 ms ± 2.5 ms [User: 44.3 ms, System: 185.0 ms] Range (min … max): 228.7 ms … 238.7 ms 12 runs Benchmark #2: ./bfs-1.6 ~/code/linux -nouser >/dev/null Time (mean ± σ): 1.050 s ± 0.012 s [User: 544.2 ms, System: 500.0 ms] Range (min … max): 1.025 s … 1.063 s 10 runs Benchmark #3: find ~/code/linux -nouser >/dev/null Time (mean ± σ): 1.040 s ± 0.012 s [User: 533.6 ms, System: 500.6 ms] Range (min … max): 1.017 s … 1.054 s 10 runs Summary './bfs ~/code/linux -nouser >/dev/null' ran 4.48 ± 0.07 times faster than 'find ~/code/linux -nouser >/dev/null' 4.52 ± 0.07 times faster than './bfs-1.6 ~/code/linux -nouser >/dev/null'
2020-02-29parse: Give -ls and -fls an ephemeral FD for getpwuid()/getgrgid()Tavian Barnes
Similar to 9009456c, those functions may open /etc/{passwd,group}, so they need an FD available. Right now, -ls on large trees eventually starts printing numeric IDs instead of usernames/group names.
2020-02-25Release 1.61.6Tavian Barnes
2020-02-25parse: Don't return success for invalid parse_int() calls with -DNDEBUGTavian Barnes
2020-02-14eval: Irregular files aren't emptyTavian Barnes
GNU find's -empty returns false for devices, sockets, etc., even though their st_size is 0. Match that behaviour.
2020-02-13time: Implement xtimegm() without mktime()Tavian Barnes
Using setenv("TZ") is ugly and adds unnecessary failure paths.
2020-02-13time: Split out time-related functions from utilTavian Barnes
2020-02-13parse: Handle 1969-12-31T23:59:59ZTavian Barnes
mktime() returns -1 on error, but also for one second before the epoch. Compare the input against localtime(-1) to distinguish those cases.
2020-02-12Implement -{a,B,c,m,}sinceTavian Barnes
2020-02-12parse: Set tm_isdst to -1Tavian Barnes
This is required by POSIX to ensure the mktime() determines itself whether DST is in effect.
2020-02-12parse: Work around missing `timezone` on FreeBSDTavian Barnes
FreeBSD has a function timezone() that conflicts with the global variable, despite that being specified by POSIX. Use tm_gmtoff instead.
2020-02-11Implement explicit reference times (-newerXt)Tavian Barnes
2020-01-22parse: Add a missing NULL check for trie_insert_mem()Tavian Barnes
2020-01-21README: Add FreeBSD install instructionsTavian Barnes
2020-01-14tests: Make test_xattr a sudo test in exactly the right casesTavian Barnes
This was broken on GNU Hurd, for example.
2020-01-09Release 1.5.21.5.2Tavian Barnes