summaryrefslogtreecommitdiffstats
path: root/util.h
AgeCommit message (Collapse)Author
2017-09-20util: Wrap faccessat() to fix some portability issuesTavian Barnes
2017-09-06util: Factor out checks for nonexistent paths/broken linksTavian Barnes
2017-08-22Avoid multiple extra stat()s of broken symlinks for -xtypeTavian Barnes
2017-08-12Unify broken symlink handlingTavian 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-29util: Define O_DIRECTORY to 0 if it's not already definedTavian Barnes
2017-07-27Re-license under the BSD Zero Clause LicenseTavian Barnes
2017-07-15Handle yes/no prompts correctly according to the localeTavian Barnes
2017-04-24Release 1.01.0Tavian Barnes
2017-04-13util.h: Don't use a forward reference to enum bftw_typeflagTavian Barnes
Apparently that's not allowed in standard C.
2017-04-08Move bftw_typeflag converters to util.cTavian Barnes
2017-03-16Color link targets for -lsTavian Barnes
Fixes #18.
2017-03-11Implement -ls and -flsTavian Barnes
2017-01-31Don't trust st_size when reading symlinksTavian 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-18Implement -regex, -iregex, and -regextype/-ETavian Barnes
2016-12-16Fix the build on OpenIndianaTavian Barnes
2016-12-04Move portability code into util.hTavian Barnes
2016-11-14Check for readdir() errors everywhere.Tavian Barnes
2016-11-13Redirect stdin from /dev/null for -ok and -okdir.Tavian Barnes