Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-03-06 | Support -flags on all the BSDs | Tavian Barnes | |
2021-02-05 | Update copyright dates | Tavian Barnes | |
2021-01-28 | dir: New DIR* facade | Tavian Barnes | |
2020-11-30 | util: Use fgetc(stdin) instead of getchar() | Tavian Barnes | |
On FreeBSD the getchar() macro leads to (spurious?) msan uninitialized value errors. Call the fgetc() library function to work around it. | |||
2020-11-12 | Include what I use | Tavian Barnes | |
Thanks to https://github.com/include-what-you-use/include-what-you-use | |||
2020-11-04 | Enable -Wsign-compare to catch bugs like 726d7801 | Tavian Barnes | |
2020-10-01 | util: Move redirect() and isopen() to main.c | Tavian Barnes | |
2020-09-30 | util: Don't rely on bftw | Tavian Barnes | |
And rename format_mode() to xstrmode() while I'm at it. | |||
2020-09-18 | util: Make the initial allocation bigger for xreadlinkat() | Tavian Barnes | |
Most symlinks are more than 1 character long, so rather than wasting time with 1, 2, 4, ... when we don't have a good guess for the length, start with a bigger one. Credit to https://twitter.com/RichFelker/status/1306321019108556806 for reminding me of this. | |||
2020-07-29 | bftw: Rename bftw_typeflag to bftw_type, and make it not a bitmask | Tavian Barnes | |
2020-02-13 | time: Split out time-related functions from util | Tavian Barnes | |
2020-02-13 | parse: Handle 1969-12-31T23:59:59Z | Tavian 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-11 | Implement explicit reference times (-newerXt) | Tavian Barnes | |
2020-01-07 | Update copyright dates | Tavian Barnes | |
2020-01-07 | util: Support ports and whiteouts in format_mode() | Tavian Barnes | |
2019-06-25 | util: Filter out . and .. in xreaddir() | Tavian Barnes | |
2019-02-06 | Turn on -Wstrict-prototypes | Tavian Barnes | |
2019-02-01 | main: Fix closed standard stream handling | Tavian Barnes | |
bfs >&- should complain about a missing file descriptor, rather than silently succeeding. | |||
2019-01-02 | posix1e: Split out ACL and capability handling from util | Tavian Barnes | |
2018-12-19 | util: Don't leak an acl_t on non-POSIX.1e platforms | Tavian Barnes | |
2018-12-18 | util: Support systems that don't define the POSIX.1e ACL tag values | Tavian Barnes | |
2018-12-17 | Implement -acl test | Tavian Barnes | |
2018-12-17 | color: Support coloring files with capabilities | Tavian Barnes | |
2018-12-17 | bftw: Move bftw_typeflag conversion out of util | Tavian Barnes | |
Turns out incomplete enum types are a GNU C extension. | |||
2018-11-08 | Check for <sys/param.h> before including it | Tavian Barnes | |
Fixes #38. | |||
2018-11-02 | util: Provide fallback implementations of makedev()/major()/minor() | Tavian Barnes | |
2018-11-01 | util: Wrap __has_include() | Tavian Barnes | |
2018-11-01 | Print device major/minor numbers for -ls | Tavian Barnes | |
2018-09-24 | Update copyright dates | Tavian Barnes | |
2018-07-24 | util: Preserve errno in pipe_cloexec() | Tavian Barnes | |
2018-07-24 | util: macOS doesn't have pipe2() | Tavian Barnes | |
The code was testing for BSD, since all the normal BSDs have it. But until recently, <sys/param.h> wasn't included, so BSD was undefined even on platforms that define it. Now that it is defined appropriately, exclude macOS specifically. | |||
2018-01-08 | stat: New wrapper around the stat() family | Tavian Barnes | |
This lets bfs transparently support the new statx() system call on Linux, giving it access to file birth times. | |||
2017-11-12 | exec: Recover from E2BIG | Tavian Barnes | |
2017-09-20 | util: Wrap faccessat() to fix some portability issues | Tavian Barnes | |
2017-09-06 | util: Factor out checks for nonexistent paths/broken links | Tavian Barnes | |
2017-08-22 | Avoid multiple extra stat()s of broken symlinks for -xtype | Tavian Barnes | |
2017-08-12 | Unify broken symlink handling | Tavian Barnes | |
Rather than open-code the fallback logic for broken symlinks everywhere it's needed, introduce a new xfstatat() utility function that performs the fallback automatically. Using xfstatat() consistently fixes a few bugs, including cases where broken symlinks are given as arguments to predicates like -samefile. | |||
2017-07-27 | Re-license under the BSD Zero Clause License | Tavian Barnes | |
2017-07-20 | main: Call setlocale() at startup to use the system locale | Tavian Barnes | |
2017-07-15 | Handle yes/no prompts correctly according to the locale | Tavian Barnes | |
2017-04-24 | Release 1.01.0 | Tavian Barnes | |
2017-04-08 | Move bftw_typeflag converters to util.c | Tavian Barnes | |
2017-03-16 | Color link targets for -ls | Tavian Barnes | |
Fixes #18. | |||
2017-03-11 | Implement -ls and -fls | Tavian Barnes | |
2017-01-31 | Don't trust st_size when reading symlinks | Tavian Barnes | |
Linux /proc, for example, reports a st_size of 0 for everything. It's nice to be able to use -lname on them anyway. | |||
2016-12-18 | Implement -regex, -iregex, and -regextype/-E | Tavian Barnes | |
2016-12-04 | Move portability code into util.h | Tavian Barnes | |
2016-11-14 | Check for readdir() errors everywhere. | Tavian Barnes | |
2016-11-13 | Redirect stdin from /dev/null for -ok and -okdir. | Tavian Barnes | |