Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't close stdin for -ok or -okdir | Tavian Barnes | 2017-02-09 | 1 | -9/+0 |
| | | | | Turns out it violates POSIX, even though GNU find does it. | ||||
* | Add support for -x?type with multiple types | Tavian Barnes | 2017-02-08 | 1 | -28/+2 |
| | | | | This functionality is already part of GNU findutils git. | ||||
* | Add some missing perror() calls | Tavian Barnes | 2017-02-07 | 1 | -20/+16 |
| | |||||
* | Make -quit happen immediately, not at the end of the current expression | Tavian Barnes | 2017-02-05 | 1 | -3/+31 |
| | |||||
* | Implement -printf/-fprintf | Tavian Barnes | 2017-02-05 | 1 | -30/+47 |
| | | | | | Based on a patch by Fangrui Song <i@maskray.me>. Closes #16. | ||||
* | Implement -nouser and -nogroup | Tavian Barnes | 2017-02-04 | 1 | -0/+26 |
| | |||||
* | Don't trust st_size when reading symlinks | Tavian Barnes | 2017-01-31 | 1 | -12/+1 |
| | | | | | Linux /proc, for example, reports a st_size of 0 for everything. It's nice to be able to use -lname on them anyway. | ||||
* | Simplify exec_chdir() | Tavian Barnes | 2017-01-14 | 1 | -16/+10 |
| | | | | | | The previous code recomputed the name offset for no reason, and had an embarrassing typo that was hypothetically a bug (`} if` instead of `} else if`). | ||||
* | eval: Check that O_DIRECTORY is defined before using it | Tavian Barnes | 2017-01-02 | 1 | -1/+5 |
| | |||||
* | Add tera and peta suffices for -size | Tavian Barnes | 2016-12-20 | 1 | -2/+4 |
| | |||||
* | Implement -sparse from FreeBSD find | Tavian Barnes | 2016-12-20 | 1 | -0/+13 |
| | |||||
* | Implement BSD find's -depth N | Tavian Barnes | 2016-12-18 | 1 | -0/+7 |
| | |||||
* | Implement -regex, -iregex, and -regextype/-E | Tavian Barnes | 2016-12-18 | 1 | -0/+33 |
| | |||||
* | Move portability code into util.h | Tavian Barnes | 2016-12-04 | 1 | -12/+0 |
| | |||||
* | Allow // to be different from / | Tavian Barnes | 2016-11-24 | 1 | -5/+4 |
| | | | | | | POSIX says that // may be resolved in an implementation-defined way (generally, to access network shares). So don't use it in tests, and don't canonicalize it to '/' in -execdir. | ||||
* | Don't pass AT_SYMLINK_NOFOLLOW to faccessat() | Tavian Barnes | 2016-11-22 | 1 | -1/+1 |
| | | | | It's an invalid flag for that call, and FreeBSD actually complains. | ||||
* | bftw: Make bftw_flags more similar to fts() options. | Tavian Barnes | 2016-11-21 | 1 | -2/+5 |
| | |||||
* | Fix -execdir for / | Tavian Barnes | 2016-11-21 | 1 | -5/+12 |
| | |||||
* | Fix -execdir for root paths with no slashes. | Tavian Barnes | 2016-11-21 | 1 | -1/+5 |
| | |||||
* | Check for readdir() errors everywhere. | Tavian Barnes | 2016-11-14 | 1 | -4/+16 |
| | |||||
* | Don't try to -delete the current directory. | Tavian Barnes | 2016-11-13 | 1 | -0/+5 |
| | |||||
* | Redirect stdin from /dev/null for -ok and -okdir. | Tavian Barnes | 2016-11-13 | 1 | -0/+10 |
| | |||||
* | Implement -perm. | Tavian Barnes | 2016-10-29 | 1 | -0/+31 |
| | |||||
* | Implement -ignore_readdir_race. | Tavian Barnes | 2016-10-24 | 1 | -17/+25 |
| | |||||
* | Check for POSIX timers before using them. | Tavian Barnes | 2016-10-24 | 1 | -5/+23 |
| | |||||
* | Check for errors in -print and friends. | Tavian Barnes | 2016-10-16 | 1 | -4/+18 |
| | |||||
* | bftw: Add support for some exotic file types, where available. | Tavian Barnes | 2016-10-02 | 1 | -1/+22 |
| | |||||
* | Use a linked list to store the root paths. | Tavian Barnes | 2016-07-13 | 1 | -2/+2 |
| | |||||
* | Implement -D rates. | Tavian Barnes | 2016-06-28 | 1 | -2/+45 |
| | |||||
* | Use underscores. | Tavian Barnes | 2016-06-19 | 1 | -8/+8 |
| | |||||
* | Re-work optimization levels. | Tavian Barnes | 2016-06-09 | 1 | -2/+2 |
| | | | | | | -O3 is the new default, for the future cost-based optimizer. -O4 enables the surprising/aggressive optimizations that used to be under -O3. -Ofast is a synonym for -O4. | ||||
* | Implement -fprint and -fprint0. | Tavian Barnes | 2016-06-08 | 1 | -6/+16 |
| | |||||
* | Implement -D opt. | Tavian Barnes | 2016-06-07 | 1 | -0/+3 |
| | |||||
* | eval: Clean up open fd counting code. | Tavian Barnes | 2016-06-03 | 1 | -5/+9 |
| | |||||
* | Fix hypothetical leak if waitpid() fails. | Tavian Barnes | 2016-06-02 | 1 | -1/+1 |
| | |||||
* | Use argc/argv naming consistently. | Tavian Barnes | 2016-05-22 | 1 | -9/+9 |
| | |||||
* | Implement -{exec,ok}{,dir}. | Tavian Barnes | 2016-05-22 | 1 | -1/+208 |
| | |||||
* | Remove an errant debugging printf(). | Tavian Barnes | 2016-04-10 | 1 | -1/+0 |
| | |||||
* | Implement -size. | Tavian Barnes | 2016-03-12 | 1 | -1/+24 |
| | |||||
* | Implement -used. | Tavian Barnes | 2016-03-05 | 1 | -0/+15 |
| | | | | | | This doesn't agree with find's output, but I think find is buggy here. For example, find -used +0 is returning fewer results than find -used 1, which makes no sense given that 1 is greater than 0. | ||||
* | Fix potential leaks in -lname. | Tavian Barnes | 2016-02-27 | 1 | -12/+17 |
| | |||||
* | Don't repeat reported error messages from bftw(). | Tavian Barnes | 2016-02-27 | 1 | -1/+9 |
| | | | | Fixes #7. | ||||
* | Implement -O. | Tavian Barnes | 2016-02-23 | 1 | -0/+4 |
| | |||||
* | Implement -D stat. | Tavian Barnes | 2016-02-22 | 1 | -0/+31 |
| | |||||
* | Fix infinite recursion in eval_not(). | Tavian Barnes | 2016-02-21 | 1 | -6/+13 |
| | | | | And use a helper function to prevent this kind of bug in the future. | ||||
* | Fix an uninitialized value warning. | Tavian Barnes | 2016-02-17 | 1 | -2/+5 |
| | |||||
* | s/color_table/colors/. | Tavian Barnes | 2016-02-14 | 1 | -1/+1 |
| | |||||
* | Refactor color handling. | Tavian Barnes | 2016-02-14 | 1 | -3/+5 |
| | | | | The main benefit is colored warnings/errors during parsing. | ||||
* | Implement -lname and -ilname. | Tavian Barnes | 2016-02-14 | 1 | -0/+36 |
| | |||||
* | Add brief -help and -version support. | Tavian Barnes | 2016-02-14 | 1 | -0/+4 |
| |