Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | tests: Don't check -size for directories | Tavian Barnes | 2016-12-05 | 5 | -29/+6 | |
| | ||||||
* | tests: Don't check -links for directories | Tavian Barnes | 2016-12-05 | 4 | -12/+3 | |
| | ||||||
* | Move portability code into util.h | Tavian Barnes | 2016-12-04 | 6 | -21/+51 | |
| | ||||||
* | Release 0.84.10.84.1 | Tavian Barnes | 2016-11-24 | 3 | -2/+19 | |
| | ||||||
* | Update some copyright dates. | Tavian Barnes | 2016-11-24 | 6 | -6/+6 | |
| | ||||||
* | Allow // to be different from / | Tavian Barnes | 2016-11-24 | 4 | -10/+8 | |
| | | | | | | 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. | |||||
* | bftw: Infer the flags in ftwbuf_stat() | Tavian Barnes | 2016-11-23 | 1 | -5/+5 | |
| | ||||||
* | tests: Make sure the temporary directory is owned by the current user/group | Tavian Barnes | 2016-11-22 | 1 | -0/+1 | |
| | | | | | BSDs apparently prefer to create new files/directories with the same group as the parent directory, rather than the current primary group. | |||||
* | tests: Mkae LC_ALL=C apply to the whole pipeline when sorting. | Tavian Barnes | 2016-11-22 | 4 | -40/+43 | |
| | ||||||
* | 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 a defensive copy of the ftwbuf | Tavian Barnes | 2016-11-21 | 1 | -1/+4 | |
| | | | | | The callback may modify the ftwbuf, but we check it after the callback (for typeflag and statbuf). Have them mutate a copy instead. | |||||
* | bftw: Always initialize dircache_entry::{dev,ino} | Tavian Barnes | 2016-11-21 | 1 | -6/+7 | |
| | | | | | If stat() fails, they won't get filled in otherwise. Then cycle detection would have read uninitialized values. | |||||
* | bftw: Make bftw_flags more similar to fts() options. | Tavian Barnes | 2016-11-21 | 4 | -25/+30 | |
| | ||||||
* | Support -perm +MODE for symbolic modes. | Tavian Barnes | 2016-11-21 | 3 | -5/+1 | |
| | | | | Only things like -perm +777 are disallowed by GNU find. | |||||
* | Fix -execdir for / | Tavian Barnes | 2016-11-21 | 5 | -6/+30 | |
| | ||||||
* | Fix -execdir for root paths with no slashes. | Tavian Barnes | 2016-11-21 | 2 | -2/+6 | |
| | ||||||
* | tests: Don't rely on the system 'find' for the expected output. | Tavian Barnes | 2016-11-21 | 88 | -142/+1011 | |
| | ||||||
* | Check for readdir() errors everywhere. | Tavian Barnes | 2016-11-14 | 4 | -18/+34 | |
| | ||||||
* | Don't try to -delete the current directory. | Tavian Barnes | 2016-11-13 | 2 | -1/+11 | |
| | ||||||
* | bftw: Keep trailing slashes on the root in BFTW_DEPTH mode. | Tavian Barnes | 2016-11-13 | 2 | -7/+21 | |
| | ||||||
* | Redirect stdin from /dev/null for -ok and -okdir. | Tavian Barnes | 2016-11-13 | 6 | -34/+113 | |
| | ||||||
* | parse: Don't print warnings if standard in is not a terminal. | Tavian Barnes | 2016-11-13 | 1 | -1/+1 | |
| | ||||||
* | bftw: Don't fail just because we couldn't open/read a directory. | Tavian Barnes | 2016-11-03 | 1 | -3/+3 | |
| | | | | | | | With BFTW_RECOVER set, we're not supposed to fail just because a single measly directory couldn't be handled. But using state.error as scratch space made us fail in this case. The end result is that #7 resurfaced, so fix it again. | |||||
* | Bump the version to 0.840.84 | Tavian Barnes | 2016-10-29 | 3 | -2/+18 | |
| | ||||||
* | Implement -perm. | Tavian Barnes | 2016-10-29 | 4 | -13/+366 | |
| | ||||||
* | parse: Use free_expr(expr), not free(expr). | Tavian Barnes | 2016-10-24 | 1 | -7/+7 | |
| | ||||||
* | tests.sh: Give some feedback while running. | Tavian Barnes | 2016-10-24 | 1 | -1/+15 | |
| | ||||||
* | tests: Be more careful not to invoke remove-siblings.sh $scratch. | Tavian Barnes | 2016-10-24 | 1 | -1/+1 | |
| | ||||||
* | Implement -ignore_readdir_race. | Tavian Barnes | 2016-10-24 | 6 | -31/+82 | |
| | ||||||
* | Check for POSIX timers before using them. | Tavian Barnes | 2016-10-24 | 2 | -7/+48 | |
| | ||||||
* | Account for non-standard struct stat on macOS. | Tavian Barnes | 2016-10-22 | 1 | -0/+7 | |
| | ||||||
* | main: IN is read, OUT is write. | Tavian Barnes | 2016-10-18 | 1 | -3/+3 | |
| | | | | Oops :/ | |||||
* | main: Make sure that STD{IN,OUT,ERR}_FILENO are open. | Tavian Barnes | 2016-10-16 | 1 | -0/+59 | |
| | | | | | Otherwise invocations like bfs >&- may do weird things like try to write to directory descriptors. | |||||
* | Check for errors in -print and friends. | Tavian Barnes | 2016-10-16 | 3 | -29/+81 | |
| | ||||||
* | bftw: Add support for some exotic file types, where available. | Tavian Barnes | 2016-10-02 | 5 | -2/+96 | |
| | ||||||
* | parse: Ignore -- on the command line. | Tavian Barnes | 2016-10-02 | 2 | -6/+32 | |
| | | | | | | | | | | | | | | | | | | find uses -- to indicate the end of the flags. That is, $ find -L -- -type f is allowed, but $ find -- -L -type f results in an error about an unknown predicate `-L`. This behaviour doesn't seem particularly useful -- in particular, unlike most other tools, it doesn't help you if you want to specify a filename beginning with a -. So to ensure bfs is compatible with all GNU find command lines, we just ignore -- whenever it appears. | |||||
* | bftw: Handle errors from readdir(). | Tavian Barnes | 2016-10-02 | 1 | -25/+66 | |
| | ||||||
* | bftw: Fix do/to typo in a comment. | Tavian Barnes | 2016-09-10 | 1 | -1/+1 | |
| | ||||||
* | Give case a little bit of weight in the typo metric. | Tavian Barnes | 2016-09-09 | 1 | -110/+108 | |
| | ||||||
* | Give suggestions for operators too. | Tavian Barnes | 2016-09-06 | 1 | -19/+47 | |
| | ||||||
* | Use the two-star list augmenting method. | Tavian Barnes | 2016-09-05 | 1 | -8/+4 | |
| | ||||||
* | Bump the version to 0.82.0.82 | Tavian Barnes | 2016-09-04 | 3 | -4/+4 | |
| | ||||||
* | Require -{min,max}depth argument to be positive. | Tavian Barnes | 2016-09-04 | 1 | -1/+1 | |
| | ||||||
* | Implement typo detection for literals. | Tavian Barnes | 2016-09-04 | 4 | -2/+212 | |
| | ||||||
* | Use a table-driven parser for literals. | Tavian Barnes | 2016-09-04 | 1 | -291/+281 | |
| | ||||||
* | bftw: Initialize typeflag to BFTW_UNKNOWN. | Tavian Barnes | 2016-08-24 | 1 | -2/+1 | |
| | | | | It was totally broken on filesystems that spit out DT_UNKNOWN. | |||||
* | Implement -f PATH from BSD find. | Tavian Barnes | 2016-07-13 | 2 | -1/+29 | |
| | ||||||
* | Use a linked list to store the root paths. | Tavian Barnes | 2016-07-13 | 3 | -29/+52 | |
| | ||||||
* | Implement -D rates. | Tavian Barnes | 2016-06-28 | 4 | -16/+93 | |
| | ||||||
* | Use underscores. | Tavian Barnes | 2016-06-19 | 3 | -44/+44 | |
| |