Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | tests/xtouch: Try creating the immediate parent first | Tavian Barnes | 2023-09-29 | 1 | -15/+24 | |
| |/ | ||||||
* / | tests: Don't cd into paths longer than PATH_MAX | Tavian Barnes | 2023-10-02 | 1 | -12/+8 | |
|/ | | | | | | This fixes a warning on at least Alpine Linux that looks like cd: error retrieving current directory: getcwd: cannot access parent directories: Filename too long | |||||
* | Formatting fixes | Tavian Barnes | 2023-09-27 | 25 | -106/+100 | |
| | ||||||
* | bit: Fix UINTPTR_WIDTH typo | Tavian Barnes | 2023-09-26 | 1 | -1/+1 | |
| | ||||||
* | bit: Use predefined __*_WIDTH__ macros if we can | Tavian Barnes | 2023-09-26 | 1 | -24/+69 | |
| | ||||||
* | dstring: New dchar typedef for dynamic strings | Tavian Barnes | 2023-09-26 | 11 | -64/+85 | |
| | ||||||
* | ci/freebsd: Switch to Tailscale OAuth | Tavian Barnes | 2023-09-25 | 1 | -1/+3 | |
| | ||||||
* | Use the new list macros | Tavian Barnes | 2023-09-25 | 6 | -28/+24 | |
| | ||||||
* | list: New for_[s]list() macros | Tavian Barnes | 2023-09-25 | 1 | -2/+60 | |
| | ||||||
* | list: Unify formatting | Tavian Barnes | 2023-09-25 | 1 | -16/+32 | |
| | ||||||
* | list: New [S]LIST_EMPTY() macros | Tavian Barnes | 2023-09-25 | 1 | -0/+18 | |
| | ||||||
* | list: New [S]LIST_ITEM_INIT() macros | Tavian Barnes | 2023-09-25 | 1 | -22/+52 | |
| | ||||||
* | list: Use (void)(...) rather than do { ... } while (0) | Tavian Barnes | 2023-09-25 | 1 | -31/+30 | |
| | | | | This makes everything usable in expression contexts. | |||||
* | README: Add Guix and OpenBSD packages | Tavian Barnes | 2023-09-14 | 1 | -8/+39 | |
| | ||||||
* | bftw: Share the bftw_state between iterations of ids/eds | Tavian Barnes | 2023-09-13 | 1 | -72/+71 | |
| | ||||||
* | parse: Give more ephemeral_fds to -no{user,group} | Tavian Barnes | 2023-09-12 | 1 | -7/+9 | |
| | | | | | | | | Fewer than 3 can lead to Assertion failed: (retval->write_queue != -1), function __open_cached_connection, file /usr/src/lib/libc/net/nscachedcli.c, line 224. on a FreeBSD system with LDAP accounts. | |||||
* | Release 3.0.23.0.2 | Tavian Barnes | 2023-09-06 | 3 | -2/+20 | |
| | ||||||
* | bfstd: Work around a FreeBSD-specific msan issue | Tavian Barnes | 2023-09-06 | 1 | -4/+23 | |
| | | | | Link: https://github.com/llvm/llvm-project/issues/65532 | |||||
* | bfstd: Skip a whole loop in dollar_quote() if possible | Tavian Barnes | 2023-09-06 | 1 | -2/+1 | |
| | ||||||
* | bfstd: Fix printable_len() off-by-one | Tavian Barnes | 2023-09-06 | 2 | -2/+17 | |
| | | | | | | | If xmbrtowc() fails, or if xiswprint() is false, then we shouldn't include that wide char in the printable length. Fixes: 19c96abe0a1ee56cf206fd5e87defb1fd3e0daa5 | |||||
* | bfstd: Fix an OOB string index in xmbrtowc() | Tavian Barnes | 2023-09-06 | 3 | -6/+24 | |
| | | | | | | | | | | | | | | | | | | | | | | This bug could be reproduced with something like $ bfs -samefile $'\xFA\xFA' bfs: error: bfs: dstrnescat@src/dstring.c:252: wordesc() result truncated or worse, with -DNDEBUG, $ bfs -samefile $'.....................\xFA\xFA' bfs: error: bfs -samefile $'.....................\xFA\xFA\x00\x55\x53\x45\x52\x3D\x74\x61\x76\x69\x61\x6E\x61\x74\x6F\x72 bfs: error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bfs: error: No such file or directory. which prints the memory after the end of the string (in this case, the environment variable USER=tavianator). The bug was caused by the line `*i += len`, which was intended to be `*i = len`. But actually, the right behaviour seems to be `*i += 1`. Fixes: 19c96abe0a1ee56cf206fd5e87defb1fd3e0daa5 | |||||
* | bftw: Enforce the dirlimit strictly | Tavian Barnes | 2023-09-06 | 1 | -19/+17 | |
| | | | | | | The previous accounting didn't fully control the number of allocated bfs_dirs, as the dirlimit was incremented once we popped the directory, not when we freed it. | |||||
* | bfs uses the C17 standard version | Alejandro Lazaro | 2023-09-01 | 1 | -1/+1 | |
| | | | `bfs` uses C17 since 3.0 | |||||
* | pwcache: Don't use _SC_GET{PW,GR}_R_SIZE_MAX | Tavian Barnes | 2023-08-31 | 1 | -23/+9 | |
| | | | | | They tend be 1024, which is a lot of memory per user/group. 128 is usually enough, so start there instead. | |||||
* | pwcache: Arena-allocate struct passwd/group | Tavian Barnes | 2023-08-31 | 1 | -54/+80 | |
| | ||||||
* | alloc: New varena_grow() function | Tavian Barnes | 2023-08-31 | 2 | -0/+29 | |
| | ||||||
* | trie: New trie_clear() function | Tavian Barnes | 2023-08-31 | 3 | -2/+14 | |
| | ||||||
* | alloc: New [v]arena_clear() functions | Tavian Barnes | 2023-08-31 | 2 | -1/+25 | |
| | ||||||
* | Work around https://github.com/llvm/llvm-project/issues/64946 | Tavian Barnes | 2023-08-23 | 2 | -0/+6 | |
| | ||||||
* | ioq: New ioq_slot_monitor() helper | Tavian Barnes | 2023-08-23 | 1 | -4/+8 | |
| | ||||||
* | docs/bfs.1: Document each -regextype | Tavian Barnes | 2023-08-15 | 1 | -5/+34 | |
| | ||||||
* | docs/bfs.1: Document that -help/-version exit immediately | Tavian Barnes | 2023-08-15 | 1 | -6/+14 | |
| | ||||||
* | docs/bfs.1: Don't unnecessarily quote {} | Tavian Barnes | 2023-08-15 | 1 | -1/+1 | |
| | ||||||
* | docs/bfs.1: Clarify the effects of $POSIXLY_CORRECT | Tavian Barnes | 2023-08-15 | 1 | -1/+22 | |
| | ||||||
* | docs/bfs.1: Document use of $PATH | Tavian Barnes | 2023-08-15 | 1 | -0/+10 | |
| | ||||||
* | docs/bfs.1: Document that -prune does not work together with -depth | Tavian Barnes | 2023-08-15 | 1 | -0/+7 | |
| | ||||||
* | docs/bfs.1: Document the -type d,f syntax | Tavian Barnes | 2023-08-15 | 1 | -13/+38 | |
| | ||||||
* | docs/bfs.1: Use a bulleted list for -size units | Tavian Barnes | 2023-08-15 | 1 | -8/+15 | |
| | ||||||
* | docs/bfs.1: Give an example with a space separating date from time | Tavian Barnes | 2023-08-15 | 1 | -7/+6 | |
| | ||||||
* | docs/bfs.1: Make bold/italic formatting more consistent | Tavian Barnes | 2023-08-15 | 1 | -4/+6 | |
| | ||||||
* | tests: Add missing .out file | Tavian Barnes | 2023-08-14 | 1 | -0/+0 | |
| | ||||||
* | parse: Allow -files0-from an empty set of paths | Tavian Barnes | 2023-08-14 | 2 | -11/+4 | |
| | | | | This follows a behaviour change in GNU findutils 4.9.0. | |||||
* | bfstd: Don't label a declaration | Tavian Barnes | 2023-08-08 | 1 | -1/+1 | |
| | ||||||
* | stat: Don't check for statx() mask bits we already checked for | Tavian Barnes | 2023-08-07 | 1 | -31/+15 | |
| | ||||||
* | bfstd: Check multiple chars at once for isascii() | Tavian Barnes | 2023-08-07 | 1 | -3/+20 | |
| | ||||||
* | bfstd: Speed up wordesc() by caching isprint()/isspace() | Tavian Barnes | 2023-08-07 | 1 | -2/+29 | |
| | ||||||
* | bit: Add a cast to squelch -Wsign-compare | Tavian Barnes | 2023-07-24 | 1 | -1/+1 | |
| | | | | I see this only with musl-gcc for some reason. | |||||
* | README: Official Homebrew formula | Martin Polden | 2023-07-22 | 1 | -2/+2 | |
| | | | | An official `bfs` formula has been added to Homebrew now. | |||||
* | README.md: fix reversed examples | Wayne Scott | 2023-07-22 | 1 | -9/+9 | |
| | ||||||
* | Rename Makefile to GNUmakefile | Raf Czlonka | 2023-07-20 | 3 | -4/+4 | |
| |